Skip to content

Commit f0f7ead

Browse files
committed
fix highlighting of ? and ! in function calls
\b made the regex not match ? and !
1 parent d0ae1a4 commit f0f7ead

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

syntaxes/elixir.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@
197197
},
198198
{
199199
"comment": "Access",
200-
"match": "((@)[_\\p{Ll}\\p{Lo}][\\p{L}\\p{N}_]*[?!]?)\\b\\s*(\\.)\\s*\\b([_\\p{Ll}\\p{Lo}][\\p{L}\\p{N}_]*[?!]?)\\b\\s*(\\.)\\s*\\b([_\\p{Ll}\\p{Lo}][\\p{L}\\p{N}_]*[?!]?)\\b(?!\\s*\\.)",
200+
"match": "((@)[_\\p{Ll}\\p{Lo}][\\p{L}\\p{N}_]*[?!]?)\\s*(\\.)\\s*\\b([_\\p{Ll}\\p{Lo}][\\p{L}\\p{N}_]*[?!]?)\\s*(\\.)\\s*\\b([_\\p{Ll}\\p{Lo}][\\p{L}\\p{N}_]*[?!]?)(?!\\s*\\.)",
201201
"captures": {
202202
"2": {
203203
"name": "punctuation.definition.variable.elixir"
@@ -221,7 +221,7 @@
221221
},
222222
{
223223
"comment": "Access",
224-
"match": "((@)[_\\p{Ll}\\p{Lo}][\\p{L}\\p{N}_]*[?!]?)\\b\\s*(\\.)\\s*\\b([_\\p{Ll}\\p{Lo}][\\p{L}\\p{N}_]*[?!]?)\\b",
224+
"match": "((@)[_\\p{Ll}\\p{Lo}][\\p{L}\\p{N}_]*[?!]?)\\s*(\\.)\\s*\\b([_\\p{Ll}\\p{Lo}][\\p{L}\\p{N}_]*[?!]?)",
225225
"captures": {
226226
"2": {
227227
"name": "punctuation.definition.variable.elixir"
@@ -239,7 +239,7 @@
239239
},
240240
{
241241
"comment": "Access",
242-
"match": "\\b([_\\p{Ll}\\p{Lo}][\\p{L}\\p{N}_]*[?!]?)\\b\\s*(\\.)\\s*\\b([_\\p{Ll}\\p{Lo}][\\p{L}\\p{N}_]*[?!]?)\\b\\s*(\\.)\\s*\\b([_\\p{Ll}\\p{Lo}][\\p{L}\\p{N}_]*[?!]?)\\b(?!\\s*\\.)",
242+
"match": "\\b([_\\p{Ll}\\p{Lo}][\\p{L}\\p{N}_]*[?!]?)\\s*(\\.)\\s*\\b([_\\p{Ll}\\p{Lo}][\\p{L}\\p{N}_]*[?!]?)\\s*(\\.)\\s*\\b([_\\p{Ll}\\p{Lo}][\\p{L}\\p{N}_]*[?!]?)(?!\\s*\\.)",
243243
"captures": {
244244
"1": {
245245
"name": "variable.other.readwrite.elixir"
@@ -260,7 +260,7 @@
260260
},
261261
{
262262
"comment": "Access",
263-
"match": "\\b([_\\p{Ll}\\p{Lo}][\\p{L}\\p{N}_]*[?!]?)\\b\\s*(\\.)\\s*\\b([_\\p{Ll}\\p{Lo}][\\p{L}\\p{N}_]*[?!]?)\\b",
263+
"match": "\\b([_\\p{Ll}\\p{Lo}][\\p{L}\\p{N}_]*[?!]?)\\s*(\\.)\\s*\\b([_\\p{Ll}\\p{Lo}][\\p{L}\\p{N}_]*[?!]?)",
264264
"captures": {
265265
"1": {
266266
"name": "variable.other.readwrite.elixir"
@@ -275,7 +275,7 @@
275275
},
276276
{
277277
"comment": "Dot call",
278-
"match": "\\b(?<=\\.)\\s*([_\\p{Ll}\\p{Lo}][\\p{L}\\p{N}_]*[?!]?)\\b(?!\\s*\\.)",
278+
"match": "\\b(?<=\\.)\\s*([_\\p{Ll}\\p{Lo}][\\p{L}\\p{N}_]*[?!]?)(?!\\s*\\.)",
279279
"name": "entity.name.function.call.dot.elixir"
280280
},
281281
{

0 commit comments

Comments
 (0)