-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit... 1. adds `language` to list of supported tag attributes used to detect script language. 2. adds dedicated meta scopes for `lang` and `type` attributes 3. adds completions for those values. Follows sublimehq/Packages#4061
- Loading branch information
Showing
4 changed files
with
81 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"scope": "text.html meta.tag.script meta.attribute-with-value.lang", | ||
"completions": [ | ||
{ | ||
"trigger": "coffee", | ||
"kind": ["type", "t", "Language Type"], | ||
"details": "CoffeeScript" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"scope": "text.html meta.tag.script meta.attribute-with-value.type", | ||
"completions": [ | ||
{ | ||
"trigger": "application/coffee", | ||
"kind": ["type", "t", "Mime Type"], | ||
"details": "CoffeeScript" | ||
}, | ||
{ | ||
"trigger": "application/coffeescript", | ||
"kind": ["type", "t", "Mime Type"], | ||
"details": "CoffeeScript" | ||
}, | ||
{ | ||
"trigger": "text/coffee", | ||
"kind": ["type", "t", "Mime Type"], | ||
"details": "CoffeeScript" | ||
}, | ||
{ | ||
"trigger": "text/coffeescript", | ||
"kind": ["type", "t", "Mime Type"], | ||
"details": "CoffeeScript" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters