diff --git a/Erlang/Erlang.sublime-syntax b/Erlang/Erlang.sublime-syntax index ee243f0a292..59d5af2aa0b 100644 --- a/Erlang/Erlang.sublime-syntax +++ b/Erlang/Erlang.sublime-syntax @@ -1386,8 +1386,10 @@ contexts: constant: # https://www.erlang.org/doc/reference_manual/data_types.html#boolean - - match: (false|true){{ident_break}} - scope: constant.language.boolean.erlang + - match: false{{ident_break}} + scope: constant.language.boolean.false.erlang + - match: true{{ident_break}} + scope: constant.language.boolean.true.erlang # https://www.erlang.org/doc/reference_manual/errors.html#exceptions - match: (error|exit|ok|throw){{ident_break}} scope: constant.language.exception.type.erlang diff --git a/Erlang/syntax_test_erlang.erl b/Erlang/syntax_test_erlang.erl index 5cd4eae68bb..89a39ec4294 100644 --- a/Erlang/syntax_test_erlang.erl +++ b/Erlang/syntax_test_erlang.erl @@ -33,10 +33,10 @@ atom_tests() -> . % Special atom tests true -% ^^^^ constant.language.boolean.erlang +% ^^^^ constant.language.boolean.true.erlang false -% ^^^^^ constant.language.boolean.erlang +% ^^^^^ constant.language.boolean.false.erlang error % ^^^^^ constant.language.exception.type.erlang