@@ -978,12 +978,11 @@ contexts:
978
978
- include : simple_string
979
979
- include : binary_string
980
980
981
- - match : (?x) (~ [a-zA-Z])\n | ~[a-zA-Z]([ ^{\[<(/|"'])
981
+ - match : (?x) ~ ( [a-zA-Z]++ [ ^{\[<(/|"'] | [a-z]{2,} )
982
982
comment : catch invalid sigils first
983
983
scope : meta.string.elixir storage.type.string.elixir
984
984
captures :
985
- 1 : invalid.illegal.sigil-string.elixir
986
- 2 : invalid.illegal.string-delimiter.elixir
985
+ 1 : invalid.illegal.sigil.elixir
987
986
988
987
# Look for 'a' behind the closing delimiter.
989
988
# Bracket delimiters are not matched yet: <>, {}, [] and ()
@@ -1132,7 +1131,7 @@ contexts:
1132
1131
- match : (?=""")
1133
1132
pop : 1
1134
1133
1135
- - match : ~Y(?=""")
1134
+ - match : ~Y(?:AML)?(? =""")
1136
1135
comment : YAML raw
1137
1136
scope : meta.string.elixir storage.type.string.elixir
1138
1137
push :
@@ -1182,7 +1181,7 @@ contexts:
1182
1181
- match : (?=")
1183
1182
pop : 1
1184
1183
1185
- - match : ~J(?=")
1184
+ - match : ~J(?:SON)?(? =")
1186
1185
comment : JSON raw
1187
1186
scope : meta.string.elixir storage.type.string.elixir
1188
1187
push :
@@ -1477,7 +1476,7 @@ contexts:
1477
1476
- include : string_closing_round
1478
1477
- include : escaped_or_interpolated
1479
1478
1480
- - match : ~[A-Z]
1479
+ - match : ~[A-Z]+
1481
1480
comment : with sigil and without interpolation
1482
1481
scope : meta.string.elixir storage.type.string.elixir
1483
1482
push :
0 commit comments