Change the scope of the options from string to constant (this fixes #1).
This is inspired by hash arguments in Ruby which have the scope:
constant.other.symbol.hashkey.ruby.
Fix single quoted string escape pattern.
The old pattern recognized a single backslash a escape sequence but that's not correct.
Remove variables from single quoted string patterns.
Variables aren't substituted in single quoted strings so they shouldn't be highlighted.
Fix handling of escaped characters (this fixed #8).
The regex for escaped characters outside of strings was broken in that it:
didn't probably escaped the characters ( and ) for the regex,
didn't include quotes.
Add indention patterns.
Atom uses these to automatically adjust the indention level while typing.
This PR does:
Change the scope of the options from string to constant (this fixes #1). This is inspired by hash arguments in Ruby which have the scope:
constant.other.symbol.hashkey.ruby
.Fix single quoted string escape pattern. The old pattern recognized a single backslash a escape sequence but that's not correct.
Remove variables from single quoted string patterns. Variables aren't substituted in single quoted strings so they shouldn't be highlighted.
Fix handling of escaped characters (this fixed #8). The regex for escaped characters outside of strings was broken in that it:
(
and)
for the regex,Add indention patterns. Atom uses these to automatically adjust the indention level while typing.