Skip to content

Commit

Permalink
[Erlang] Remove special scoping of erlang atoms
Browse files Browse the repository at this point in the history
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:

  sublimehq#1878 (comment)
  • Loading branch information
DeathAxe committed Oct 17, 2019
1 parent 7068a80 commit 70a27a3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions Erlang/Erlang.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,6 @@ contexts:
- include: string
- include: operator-unary
- include: variable-anonymous
- include: variable-erlang
- include: atom

common:
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Erlang/syntax_test_erlang.erl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 70a27a3

Please sign in to comment.