From 7bc1761fc4143e880fec36f523f678491b9a57d3 Mon Sep 17 00:00:00 2001 From: Giorgio Torres Date: Mon, 11 Mar 2024 19:08:17 +0100 Subject: [PATCH 1/2] Renamed '&' operator to keyword.operator.other.anonymous.elixir --- syntaxes/elixir.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/syntaxes/elixir.json b/syntaxes/elixir.json index 695cff1..7c61829 100644 --- a/syntaxes/elixir.json +++ b/syntaxes/elixir.json @@ -351,7 +351,7 @@ "match": "(\\&)([_\\p{Ll}\\p{Lo}][\\p{L}\\p{N}_]*[?!]?)(\\/)([0-9]+)", "captures": { "1": { - "name": "keyword.operator.other.elixir" + "name": "keyword.operator.other.anonymous.elixir" }, "2": { "name": "entity.name.function.call.capture.elixir" @@ -2529,7 +2529,7 @@ }, { "match": "(&)", - "name": "keyword.operator.other.elixir" + "name": "keyword.operator.other.anonymous.elixir" }, { "captures": { From 6510db02fd0cf47239c8f5fc89f4e30186a29db6 Mon Sep 17 00:00:00 2001 From: Giorgio Torres Date: Tue, 12 Mar 2024 09:07:44 +0100 Subject: [PATCH 2/2] Captures '.' in module names --- syntaxes/elixir.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/syntaxes/elixir.json b/syntaxes/elixir.json index 7c61829..11e5d3e 100644 --- a/syntaxes/elixir.json +++ b/syntaxes/elixir.json @@ -23,6 +23,9 @@ }, "2": { "name": "entity.name.type.module.elixir" + }, + "4": { + "name": "punctuation.separator.method.elixir" } }, "match": "^\\s*(defmodule|defprotocol|defimpl)\\s+(([A-Z][A-Za-z0-9_]*\\s*(\\.)\\s*)*[A-Z][A-Za-z0-9_]*)",