From 70a27a3734aa6aec83fcf354215a102160e923a7 Mon Sep 17 00:00:00 2001 From: DeathAxe Date: Thu, 17 Oct 2019 17:28:16 +0200 Subject: [PATCH] [Erlang] Remove special scoping of erlang atoms This commit removes the `variable-erlang` context, which was used to scope all `erlang` tokens as `variable.namespace`. As a result the `erlang` token is scoped as ordinary atom if not followed by an accessor. For the reason of change, please refer to: https://github.com/sublimehq/Packages/pull/1878#issuecomment-543071180 --- Erlang/Erlang.sublime-syntax | 5 ----- Erlang/syntax_test_erlang.erl | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/Erlang/Erlang.sublime-syntax b/Erlang/Erlang.sublime-syntax index 3df8d76e73..b95e2b13cb 100644 --- a/Erlang/Erlang.sublime-syntax +++ b/Erlang/Erlang.sublime-syntax @@ -164,7 +164,6 @@ contexts: - include: string - include: operator-unary - include: variable-anonymous - - include: variable-erlang - include: atom common: @@ -1444,10 +1443,6 @@ contexts: - match: \.{3} scope: variable.language.any.erlang - variable-erlang: - - match: erlang{{ident_break}} - scope: support.namespace.erlang - variable-other: - match: '{{variable}}' scope: variable.other.erlang diff --git a/Erlang/syntax_test_erlang.erl b/Erlang/syntax_test_erlang.erl index 612c734e39..f9be4b7667 100644 --- a/Erlang/syntax_test_erlang.erl +++ b/Erlang/syntax_test_erlang.erl @@ -4397,7 +4397,7 @@ function_call_tests() -> % erlang is a special autoimported namespace erlang -% ^^^^^^ support.namespace.erlang +% ^^^^^^ meta.atom.erlang constant.other.symbol.erlang - meta.path - support.namespace erlang: % ^ - meta.path