mirror of
https://github.com/atom/atom.git
synced 2026-02-04 03:35:20 -05:00
Don't apply whitespace in emoji matches
This commit is contained in:
@@ -29,7 +29,7 @@
|
||||
'name': 'markup.heading.gfm'
|
||||
}
|
||||
{
|
||||
'match': '\\:[^\\:]+\\:'
|
||||
'match': '\\:[^\\:\\s]+\\:'
|
||||
'name': 'variable.emoji.gfm'
|
||||
}
|
||||
{
|
||||
|
||||
@@ -60,6 +60,9 @@ describe "GitHub Flavored Markdown grammar", ->
|
||||
expect(tokens[0]).toEqual value: "this is ", scopes: ["source.gfm"]
|
||||
expect(tokens[1]).toEqual value: ":no_good:", scopes: ["source.gfm", "variable.emoji.gfm"]
|
||||
|
||||
{tokens} = grammar.tokenizeLine("this is :no good:")
|
||||
expect(tokens[0]).toEqual value: "this is :no good:", scopes: ["source.gfm"]
|
||||
|
||||
it "tokenizes a ``` code block```", ->
|
||||
{tokens, ruleStack} = grammar.tokenizeLine("```coffeescript")
|
||||
expect(tokens[0]).toEqual value: "```coffeescript", scopes: ["source.gfm", "support.gfm"]
|
||||
|
||||
Reference in New Issue
Block a user