-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for Hack language markdown blocks (#100)
* Better names for the syntax highlighting tests; add some new cases for validation * This is really a constructor * Add support for hack language embedded highlighting within markdown Add test for the same * Properly format my changes to the package json file * Properly format codeblock.json
- Loading branch information
Ted Spence
authored
Jul 15, 2020
1 parent
ed20126
commit 273a6fe
Showing
3 changed files
with
39 additions
and
0 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,22 @@ | ||
{ | ||
"fileTypes": [], | ||
"injectionSelector": "L:markup.fenced_code.block.markdown", | ||
"patterns": [ | ||
{ | ||
"include": "#hack-code-block" | ||
} | ||
], | ||
"repository": { | ||
"hack-code-block": { | ||
"begin": "hack", | ||
"end": "(^|\\G)(?=\\s*[`~]{3,}\\s*$)", | ||
"contentName": "meta.embedded.block.hack", | ||
"patterns": [ | ||
{ | ||
"include": "source.hack" | ||
} | ||
] | ||
} | ||
}, | ||
"scopeName": "markdown.hack.codeblock" | ||
} |
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