Permalink
Browse files

Remove variable.other

  • Loading branch information...
1 parent 51a2ff0 commit b3033b6494f980048f1b5d8cb4287256560ecdcd @rkma rkma committed Oct 16, 2016
Showing with 6 additions and 6 deletions.
  1. +2 −2 grammars/elixir.cson
  2. +4 −4 spec/elixir-spec.coffee
@@ -1465,11 +1465,11 @@
}
{
'match': '\\b_([\\w]+[?!]?)'
- 'name': 'variable.other.unused.comment.elixir'
+ 'name': 'unused.comment.elixir'
}
{
'match': '\\b_\\b'
- 'name': 'variable.other.wildcard.comment.elixir'
+ 'name': 'wildcard.comment.elixir'
}
{
'comment': """
@@ -14,16 +14,16 @@ describe "Elixir grammar", ->
it "tokenizes underscore variables as comments", ->
{tokens} = grammar.tokenizeLine('_some_variable?')
- expect(tokens[0]).toEqual value: '_some_variable?', scopes: ['source.elixir', 'variable.other.unused.comment.elixir']
+ expect(tokens[0]).toEqual value: '_some_variable?', scopes: ['source.elixir', 'unused.comment.elixir']
{tokens} = grammar.tokenizeLine('some_variable')
expect(tokens[0]).toEqual value: 'some_variable', scopes: ['source.elixir']
it "tokenizes underscore as wildcard variable", ->
{tokens} = grammar.tokenizeLine('this _ other_thing')
- expect(tokens[0]).not.toEqual value: 'this ', scopes: ['source.elixir', 'variable.other.wildcard.comment.elixir']
- expect(tokens[1]).toEqual value: '_', scopes: ['source.elixir', 'variable.other.wildcard.comment.elixir']
- expect(tokens[2]).not.toEqual value: ' other_thing', scopes: ['source.elixir', 'variable.other.wildcard.comment.elixir']
+ expect(tokens[0]).not.toEqual value: 'this ', scopes: ['source.elixir', 'wildcard.comment.elixir']
+ expect(tokens[1]).toEqual value: '_', scopes: ['source.elixir', 'wildcard.comment.elixir']
+ expect(tokens[2]).not.toEqual value: ' other_thing', scopes: ['source.elixir', 'wildcard.comment.elixir']
{tokens} = grammar.tokenizeLine('some_variable')
expect(tokens[0]).toEqual value: 'some_variable', scopes: ['source.elixir']

0 comments on commit b3033b6

Please sign in to comment.