Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ Note that in order for a language to be highlighted properly, you must have the
* `ejs`
* `erlang`
* `underscore`
* `glsl`
* `go`
* `lodash`
* `handlebars|hbs`: requires the Sublime Text [Handlebars](https://github.com/daaain/Handlebars) package
Expand Down
21 changes: 21 additions & 0 deletions Syntaxes/Markdown Extended.JSON-tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -884,6 +884,27 @@
}
}
},
{
"name": "markup.raw.block.markdown markup.raw.block.fenced.markdown",
"end": "(```|~~~|{%\\s*endhighlight\\s*%})\\n",
"begin": "(```|~~~|{%\\s*highlight)\\s*(glsl)\\s*((?:linenos\\s*)?%})?$",
"patterns": [
{
"include": "source.glsl"
}
],
"captures": {
"1": {
"name": "punctuation.definition.fenced.markdown"
},
"2": {
"name": "variable.language.fenced.markdown"
},
"3": {
"name": "punctuation.definition.fenced.markdown"
}
}
},
{
"name": "markup.raw.block.markdown markup.raw.block.fenced.markdown",
"end": "(```|~~~|{%\\s*endhighlight\\s*%})\\n",
Expand Down
33 changes: 33 additions & 0 deletions Syntaxes/Markdown Extended.tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,39 @@
</dict>
</array>
</dict>
<dict>
<key>begin</key>
<string>(```|~~~|{%\s*highlight)\s*(glsl)\s*((?:linenos\s*)?%})?$</string>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>punctuation.definition.fenced.markdown</string>
</dict>
<key>2</key>
<dict>
<key>name</key>
<string>variable.language.fenced.markdown</string>
</dict>
<key>3</key>
<dict>
<key>name</key>
<string>punctuation.definition.fenced.markdown</string>
</dict>
</dict>
<key>end</key>
<string>(```|~~~|{%\s*endhighlight\s*%})\n</string>
<key>name</key>
<string>markup.raw.block.markdown markup.raw.block.fenced.markdown</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>source.glsl</string>
</dict>
</array>
</dict>
<dict>
<key>begin</key>
<string>(```|~~~|{%\s*highlight)\s*(go|golang)\s*((?:linenos\s*)?%})?$</string>
Expand Down