diff --git a/extensions/ruby/syntaxes/Ruby.plist b/extensions/ruby/syntaxes/Ruby.plist
index fd18e093018..f5f7d47bce2 100644
--- a/extensions/ruby/syntaxes/Ruby.plist
+++ b/extensions/ruby/syntaxes/Ruby.plist
@@ -48,7 +48,7 @@
fcgi
gemspec
irbrc
- capfile
+ Capfile
ru
prawn
Cheffile
@@ -61,6 +61,7 @@
Berksfile
Berksfile.lock
Thorfile
+ Puppetfile
firstLineMatch
^#!/.*\bruby
@@ -418,7 +419,7 @@
begin
- (?![\s,)])
+ (?=[&*_a-zA-Z])
end
(?=[,)])
patterns
@@ -940,7 +941,7 @@
begin
- (?=(?><<-("?)((?:[_\w]+_|)HTML)\b\1))
+ (?=(?><<[-~]("?)((?:[_\w]+_|)HTML)\b\1))
comment
Heredoc with embedded html
end
@@ -951,7 +952,7 @@
begin
- (?><<-("?)((?:[_\w]+_|)HTML)\b\1)
+ (?><<[-~]("?)((?:[_\w]+_|)HTML)\b\1)
beginCaptures
0
@@ -998,7 +999,7 @@
begin
- (?=(?><<-("?)((?:[_\w]+_|)SQL)\b\1))
+ (?=(?><<[-~]("?)((?:[_\w]+_|)SQL)\b\1))
comment
Heredoc with embedded sql
end
@@ -1009,7 +1010,7 @@
begin
- (?><<-("?)((?:[_\w]+_|)SQL)\b\1)
+ (?><<[-~]("?)((?:[_\w]+_|)SQL)\b\1)
beginCaptures
0
@@ -1056,7 +1057,7 @@
begin
- (?=(?><<-("?)((?:[_\w]+_|)CSS)\b\1))
+ (?=(?><<[-~]("?)((?:[_\w]+_|)CSS)\b\1))
comment
Heredoc with embedded css
end
@@ -1067,7 +1068,7 @@
begin
- (?><<-("?)((?:[_\w]+_|)CSS)\b\1)
+ (?><<[-~]("?)((?:[_\w]+_|)CSS)\b\1)
beginCaptures
0
@@ -1114,7 +1115,7 @@
begin
- (?=(?><<-("?)((?:[_\w]+_|)CPP)\b\1))
+ (?=(?><<[-~]("?)((?:[_\w]+_|)CPP)\b\1))
comment
Heredoc with embedded c++
end
@@ -1125,7 +1126,7 @@
begin
- (?><<-("?)((?:[_\w]+_|)CPP)\b\1)
+ (?><<[-~]("?)((?:[_\w]+_|)CPP)\b\1)
beginCaptures
0
@@ -1172,7 +1173,7 @@
begin
- (?=(?><<-("?)((?:[_\w]+_|)C)\b\1))
+ (?=(?><<[-~]("?)((?:[_\w]+_|)C)\b\1))
comment
Heredoc with embedded c
end
@@ -1183,7 +1184,7 @@
begin
- (?><<-("?)((?:[_\w]+_|)C)\b\1)
+ (?><<[-~]("?)((?:[_\w]+_|)C)\b\1)
beginCaptures
0
@@ -1230,7 +1231,7 @@
begin
- (?=(?><<-("?)((?:[_\w]+_|)(?:JS|JAVASCRIPT))\b\1))
+ (?=(?><<[-~]("?)((?:[_\w]+_|)(?:JS|JAVASCRIPT))\b\1))
comment
Heredoc with embedded javascript
end
@@ -1241,7 +1242,7 @@
begin
- (?><<-("?)((?:[_\w]+_|)(?:JS|JAVASCRIPT))\b\1)
+ (?><<[-~]("?)((?:[_\w]+_|)(?:JS|JAVASCRIPT))\b\1)
beginCaptures
0
@@ -1288,7 +1289,7 @@
begin
- (?=(?><<-("?)((?:[_\w]+_|)JQUERY)\b\1))
+ (?=(?><<[-~]("?)((?:[_\w]+_|)JQUERY)\b\1))
comment
Heredoc with embedded jQuery javascript
end
@@ -1299,7 +1300,7 @@
begin
- (?><<-("?)((?:[_\w]+_|)JQUERY)\b\1)
+ (?><<[-~]("?)((?:[_\w]+_|)JQUERY)\b\1)
beginCaptures
0
@@ -1346,7 +1347,7 @@
begin
- (?=(?><<-("?)((?:[_\w]+_|)(?:SH|SHELL))\b\1))
+ (?=(?><<[-~]("?)((?:[_\w]+_|)(?:SH|SHELL))\b\1))
comment
Heredoc with embedded shell
end
@@ -1357,7 +1358,7 @@
begin
- (?><<-("?)((?:[_\w]+_|)(?:SH|SHELL))\b\1)
+ (?><<[-~]("?)((?:[_\w]+_|)(?:SH|SHELL))\b\1)
beginCaptures
0
@@ -1404,7 +1405,7 @@
begin
- (?=(?><<-("?)((?:[_\w]+_|)LUA)\b\1))
+ (?=(?><<[-~]("?)((?:[_\w]+_|)LUA)\b\1))
comment
Heredoc with embedded lua
end
@@ -1415,7 +1416,7 @@
begin
- (?><<-("?)((?:[_\w]+_|)LUA)\b\1)
+ (?><<[-~]("?)((?:[_\w]+_|)LUA)\b\1)
beginCaptures
0
@@ -1462,7 +1463,7 @@
begin
- (?=(?><<-("?)((?:[_\w]+_|)RUBY)\b\1))
+ (?=(?><<[-~]("?)((?:[_\w]+_|)RUBY)\b\1))
comment
Heredoc with embedded ruby
end
@@ -1473,7 +1474,7 @@
begin
- (?><<-("?)((?:[_\w]+_|)RUBY)\b\1)
+ (?><<[-~]("?)((?:[_\w]+_|)RUBY)\b\1)
beginCaptures
0
@@ -1559,7 +1560,7 @@
begin
- (?><<-(\w+))
+ (?><<[-~](\w+))
beginCaptures
0
@@ -1736,7 +1737,7 @@
heredoc
begin
- ^<<-?\w+
+ ^<<[-~]?\w+
end
$
patterns
@@ -4087,4 +4088,5 @@
uuid
E00B62AC-6B1C-11D9-9B1F-000D93589AF6
-
\ No newline at end of file
+
+