Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit db12c23

Browse files
chbkdarangi
authored andcommitted
Change semicolon scope name
1 parent 974810a commit db12c23

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

grammars/ruby.cson

+1-1
Original file line numberDiff line numberDiff line change
@@ -2304,7 +2304,7 @@
23042304
}
23052305
{
23062306
'match': ';'
2307-
'name': 'punctuation.separator.statement.ruby'
2307+
'name': 'punctuation.terminator.statement.ruby'
23082308
}
23092309
{
23102310
'match': ','

spec/ruby-spec.coffee

+2-2
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ describe "TextMate Ruby grammar", ->
433433
expect(tokens[8]).toEqual value: '/', scopes: ['source.ruby', 'string.regexp.interpolated.ruby', 'punctuation.section.regexp.ruby']
434434
expect(tokens[9]).toEqual value: 'test', scopes: ['source.ruby', 'string.regexp.interpolated.ruby']
435435
expect(tokens[10]).toEqual value: '/', scopes: ['source.ruby', 'string.regexp.interpolated.ruby', 'punctuation.section.regexp.ruby']
436-
expect(tokens[11]).toEqual value: ';', scopes: ['source.ruby', 'punctuation.separator.statement.ruby']
436+
expect(tokens[11]).toEqual value: ';', scopes: ['source.ruby', 'punctuation.terminator.statement.ruby']
437437

438438
{tokens} = grammar.tokenizeLine('/test/ =~ "test"')
439439

@@ -653,7 +653,7 @@ describe "TextMate Ruby grammar", ->
653653
expect(tokens[1]).toEqual value: '/', scopes: ['source.ruby', 'keyword.operator.arithmetic.ruby']
654654
expect(tokens[2]).toEqual value: ' ', scopes: ['source.ruby']
655655
expect(tokens[3]).toEqual value: '2', scopes: ['source.ruby', 'constant.numeric.ruby']
656-
expect(tokens[4]).toEqual value: ';', scopes: ['source.ruby', 'punctuation.separator.statement.ruby']
656+
expect(tokens[4]).toEqual value: ';', scopes: ['source.ruby', 'punctuation.terminator.statement.ruby']
657657
expect(tokens[6]).toEqual value: '/=', scopes: ['source.ruby', 'keyword.operator.assignment.augmented.ruby']
658658
expect(tokens[7]).toEqual value: ' ', scopes: ['source.ruby']
659659
expect(tokens[8]).toEqual value: '2', scopes: ['source.ruby', 'constant.numeric.ruby']

0 commit comments

Comments
 (0)