mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Start on a spec for nested begin/end rule w/ back-references in the end rule
This commit is contained in:
@@ -168,3 +168,7 @@ describe "TextMateGrammar", ->
|
||||
expect(tokens[2]).toEqual value: '|', scopes: ["source.ruby", "string.quoted.other.literal.lower.ruby", "punctuation.definition.string.end.ruby"]
|
||||
expect(tokens[3]).toEqual value: ',', scopes: ["source.ruby", "punctuation.separator.object.ruby"]
|
||||
|
||||
fit "allows the rule containing that end pattern to be pushed to the stack multiple times", ->
|
||||
grammar = TextMateBundle.grammarsByFileType["rb"]
|
||||
{tokens} = grammar.getLineTokens('%Q+matz had some #{%Q-crazy ideas-} for ruby syntax+ # damn.')
|
||||
console.log tokens
|
||||
|
||||
Reference in New Issue
Block a user