From 560dc3f1657d5b048875b02b00d57dbd596bfb49 Mon Sep 17 00:00:00 2001 From: deathaxe Date: Tue, 16 Jul 2024 18:54:51 +0200 Subject: [PATCH 1/2] Syntax: Fix Terraform highlighting in fenced code blocks --- messages/next.md | 3 ++- syntaxes/Markdown.sublime-syntax | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/messages/next.md b/messages/next.md index eb2fb34e..c59bbbcf 100644 --- a/messages/next.md +++ b/messages/next.md @@ -5,7 +5,8 @@ feedback you can use [GitHub issues][issues]. ## Bug Fixes -- improve code span patterns in table cells +* improve code span patterns in table cells +* Fix Terraform syntax highlighting in fenced code blocks (#765) ## New Features diff --git a/syntaxes/Markdown.sublime-syntax b/syntaxes/Markdown.sublime-syntax index 852588a2..662378ff 100644 --- a/syntaxes/Markdown.sublime-syntax +++ b/syntaxes/Markdown.sublime-syntax @@ -2521,7 +2521,7 @@ contexts: 5: constant.other.language-name.markdown 6: comment.line.infostring.markdown 7: meta.fold.code-fence.begin.markdown - embed: scope:source.json.terraform + embed: scope:source.terraform embed_scope: markup.raw.code-fence.terraform.markdown-gfm escape: '{{fenced_code_block_escape}}' escape_captures: From e0e4a94d63faffdb25884d92ac76a122c304a9f5 Mon Sep 17 00:00:00 2001 From: deathaxe Date: Tue, 16 Jul 2024 19:03:10 +0200 Subject: [PATCH 2/2] Syntax: Update fenced codeblock language markers --- messages/next.md | 1 + .../Code Block Syntaxes.sublime-completions | 717 ++++++++++++++++++ syntaxes/Markdown.sublime-syntax | 28 +- 3 files changed, 732 insertions(+), 14 deletions(-) create mode 100644 syntaxes/Code Block Syntaxes.sublime-completions diff --git a/messages/next.md b/messages/next.md index c59bbbcf..0dd8c1db 100644 --- a/messages/next.md +++ b/messages/next.md @@ -7,6 +7,7 @@ feedback you can use [GitHub issues][issues]. * improve code span patterns in table cells * Fix Terraform syntax highlighting in fenced code blocks (#765) +* add missing language tag names to detect fenced code block syntaxes ## New Features diff --git a/syntaxes/Code Block Syntaxes.sublime-completions b/syntaxes/Code Block Syntaxes.sublime-completions new file mode 100644 index 00000000..abec35fd --- /dev/null +++ b/syntaxes/Code Block Syntaxes.sublime-completions @@ -0,0 +1,717 @@ +{ + "scope": "text.html.markdown meta.code-fence.definition.begin", + "completions": [ + + // ActionScript + { + "trigger": "actionscript", + "annotation": "ActionScript", + "kind": ["markup", "s", "Syntax"], + "details": "Specifies ActionScript code highlighting" + }, + { + "trigger": "as", + "annotation": "ActionScript", + "kind": ["markup", "s", "Syntax"], + "details": "Specifies ActionScript code highlighting" + }, + + // AppleScript + { + "trigger": "applescript", + "annotation": "AppleScript", + "kind": ["markup", "s", "Syntax"], + "details": "Specifies AppleScript code highlighting" + }, + { + "trigger": "osascript", + "annotation": "AppleScript", + "kind": ["markup", "s", "Syntax"], + "details": "Specifies AppleScript code highlighting" + }, + { + "trigger": "scpt", + "annotation": "AppleScript", + "kind": ["markup", "s", "Syntax"], + "details": "Specifies AppleScript code highlighting" + }, + + // C++ + { + "trigger": "c", + "annotation": "C source", + "kind": ["markup", "s", "Syntax"], + "details": "Specifies C code highlighting" + }, + { + "trigger": "cpp", + "annotation": "C++ source", + "kind": ["markup", "s", "Syntax"], + "details": "Specifies C++ code highlighting" + }, + { + "trigger": "cxx", + "annotation": "C++ source", + "kind": ["markup", "s", "Syntax"], + "details": "Specifies C++ code highlighting" + }, + { + "trigger": "c++", + "annotation": "C++ source", + "kind": ["markup", "s", "Syntax"], + "details": "Specifies C++ code highlighting" + }, + { + "trigger": "h", + "annotation": "C header", + "kind": ["markup", "s", "Syntax"], + "details": "Specifies C code highlighting" + }, + { + "trigger": "hpp", + "annotation": "C++ header", + "kind": ["markup", "s", "Syntax"], + "details": "Specifies C++ code highlighting" + }, + { + "trigger": "hxx", + "annotation": "C++ header", + "kind": ["markup", "s", "Syntax"], + "details": "Specifies C++ code highlighting" + }, + { + "trigger": "h++", + "annotation": "C++ header", + "kind": ["markup", "s", "Syntax"], + "details": "Specifies C++ code highlighting" + }, + + // C# + { + "trigger": "csharp", + "annotation": "C#", + "kind": ["markup", "s", "Syntax"], + "details": "Specifies C# code highlighting" + }, + { + "trigger": "cs", + "annotation": "C#", + "kind": ["markup", "s", "Syntax"], + "details": "Specifies C# code highlighting" + }, + { + "trigger": "c#", + "annotation": "C#", + "kind": ["markup", "s", "Syntax"], + "details": "Specifies C# code highlighting" + }, + + // Clojure + { + "trigger": "clojure", + "annotation": "Clojure", + "kind": ["markup", "s", "Syntax"], + "details": "Specifies Clojure code highlighting" + }, + { + "trigger": "clj", + "annotation": "Clojure", + "kind": ["markup", "s", "Syntax"], + "details": "Specifies Clojure code highlighting" + }, + + // CSS + { + "trigger": "css", + "annotation": "Stylesheet", + "kind": ["markup", "s", "Syntax"], + "details": "Specifies CSS code highlighting" + }, + + // Diff + { + "trigger": "diff", + "annotation": "Diff", + "kind": ["markup", "s", "Syntax"], + "details": "Specifies Diff code highlighting" + }, + { + "trigger": "udiff", + "annotation": "Unified Diff", + "kind": ["markup", "s", "Syntax"], + "details": "Specifies Diff code highlighting" + }, + { + "trigger": "patch", + "annotation": "Patch", + "kind": ["markup", "s", "Syntax"], + "details": "Specifies Patch code highlighting" + }, + + // Dosbatch + { + "trigger": "bat", + "annotation": "DOS batch", + "kind": ["markup", "s", "Syntax"], + "details": "Specifies DOS batch code highlighting" + }, + { + "trigger": "batch", + "annotation": "DOS batch", + "kind": ["markup", "s", "Syntax"], + "details": "Specifies DOS batch code highlighting" + }, + { + "trigger": "batchfile", + "annotation": "DOS batch", + "kind": ["markup", "s", "Syntax"], + "details": "Specifies DOS batch code highlighting" + }, + { + "trigger": "cmd", + "annotation": "DOS batch", + "kind": ["markup", "s", "Syntax"], + "details": "Specifies DOS batch code highlighting" + }, + { + "trigger": "dosbatch", + "annotation": "DOS batch", + "kind": ["markup", "s", "Syntax"], + "details": "Specifies DOS batch code highlighting" + }, + { + "trigger": "winbatch", + "annotation": "DOS batch", + "kind": ["markup", "s", "Syntax"], + "details": "Specifies DOS batch code highlighting" + }, + + // Erlang + { + "trigger": "erl", + "annotation": "Erlang", + "kind": ["markup", "s", "Syntax"], + "details": "Specifies Erlang code highlighting" + }, + { + "trigger": "erlang", + "annotation": "Erlang", + "kind": ["markup", "s", "Syntax"], + "details": "Specifies Erlang code highlighting" + }, + { + "trigger": "escript", + "annotation": "Erlang Script", + "kind": ["markup", "s", "Syntax"], + "details": "Specifies Erlang code highlighting" + }, + + // Go + { + "trigger": "go", + "annotation": "Go", + "kind": ["markup", "s", "Syntax"], + "details": "Specifies Go code highlighting" + }, + { + "trigger": "golang", + "annotation": "Go", + "kind": ["markup", "s", "Syntax"], + "details": "Specifies Go code highlighting" + }, + + // GraphViz + { + "trigger": "dot", + "annotation": "GraphViz", + "kind": ["markup", "s", "Syntax"], + "details": "Specifies GraphViz code highlighting" + }, + { + "trigger": "graphviz", + "annotation": "GraphViz", + "kind": ["markup", "s", "Syntax"], + "details": "Specifies GraphViz code highlighting" + }, + { + "trigger": "gv", + "annotation": "GraphViz", + "kind": ["markup", "s", "Syntax"], + "details": "Specifies GraphViz code highlighting" + }, + + // Haskell + { + "trigger": "haskell", + "annotation": "Haskell", + "kind": ["markup", "s", "Syntax"], + "details": "Specifies Haskell code highlighting" + }, + { + "trigger": "hs", + "annotation": "Haskell", + "kind": ["markup", "s", "Syntax"], + "details": "Specifies Haskell code highlighting" + }, + { + "trigger": "hsc", + "annotation": "Haskell C binding", + "kind": ["markup", "s", "Syntax"], + "details": "Specifies Haskell code highlighting" + }, + + // HTML + { + "trigger": "html", + "annotation": "HTML", + "kind": ["markup", "s", "Syntax"], + "details": "Specifies HTML code highlighting" + }, + { + "trigger": "xhtml", + "annotation": "HTML", + "kind": ["markup", "s", "Syntax"], + "details": "Specifies HTML code highlighting" + }, + + // Java + { + "trigger": "java", + "annotation": "Java", + "kind": ["markup", "s", "Syntax"], + "details": "Specifies Java code highlighting" + }, + { + "trigger": "jsp", + "annotation": "Java Server Pages", + "kind": ["markup", "s", "Syntax"], + "details": "Specifies Java Server Pages code highlighting" + }, + { + "trigger": "jspx", + "annotation": "Java Server Pages", + "kind": ["markup", "s", "Syntax"], + "details": "Specifies Java Server Pages code highlighting" + }, + + // JavaScript + { + "trigger": "javascript", + "annotation": "JavaScript", + "kind": ["markup", "s", "Syntax"], + "details": "Specifies JavaScript code highlighting" + }, + { + "trigger": "js", + "annotation": "JavaScript", + "kind": ["markup", "s", "Syntax"], + "details": "Specifies JavaScript code highlighting" + }, + { + "trigger": "node", + "annotation": "JavaScript", + "kind": ["markup", "s", "Syntax"], + "details": "Specifies JavaScript code highlighting" + }, + { + "trigger": "jsx", + "annotation": "JavaScript React", + "kind": ["markup", "s", "Syntax"], + "details": "Specifies JavaScript React code highlighting" + }, + { + "trigger": "ts", + "annotation": "TypeScript", + "kind": ["markup", "s", "Syntax"], + "details": "Specifies TypeScript code highlighting" + }, + { + "trigger": "tsnode", + "annotation": "TypeScript", + "kind": ["markup", "s", "Syntax"], + "details": "Specifies TypeScript code highlighting" + }, + { + "trigger": "tsx", + "annotation": "TypeScript React", + "kind": ["markup", "s", "Syntax"], + "details": "Specifies TypeScript React code highlighting" + }, + { + "trigger": "typescript", + "annotation": "TypeScript", + "kind": ["markup", "s", "Syntax"], + "details": "Specifies TypeScript code highlighting" + }, + + // JSON + { + "trigger": "json", + "annotation": "JSON", + "kind": ["markup", "s", "Syntax"], + "details": "Specifies JSON code highlighting" + }, + { + "trigger": "jsonc", + "annotation": "JSON with Comments", + "kind": ["markup", "s", "Syntax"], + "details": "Specifies JSON with Comments code highlighting" + }, + + // LaTeX + { + "trigger": "tex", + "annotation": "TeX", + "kind": ["markup", "s", "Syntax"], + "details": "Specifies TeX code highlighting" + }, + { + "trigger": "latex", + "annotation": "LaTeX", + "kind": ["markup", "s", "Syntax"], + "details": "Specifies LaTeX code highlighting" + }, + + // Lisp + { + "trigger": "lisp", + "annotation": "Lisp", + "kind": ["markup", "s", "Syntax"], + "details": "Specifies Lisp code highlighting" + }, + + // Lua + { + "trigger": "lua", + "annotation": "Lua", + "kind": ["markup", "s", "Syntax"], + "details": "Specifies Lua code highlighting" + }, + + // Makefile + { + "trigger": "make", + "annotation": "Makefile", + "kind": ["markup", "s", "Syntax"], + "details": "Specifies Makefile code highlighting" + }, + { + "trigger": "makefile", + "annotation": "Makefile", + "kind": ["markup", "s", "Syntax"], + "details": "Specifies Makefile code highlighting" + }, + { + "trigger": "mf", + "annotation": "Makefile", + "kind": ["markup", "s", "Syntax"], + "details": "Specifies Makefile code highlighting" + }, + + // Matlab + { + "trigger": "matlab", + "annotation": "MatLab", + "kind": ["markup", "s", "Syntax"], + "details": "Specifies MatLab code highlighting" + }, + + // Objective C++ + { + "trigger": "objc", + "annotation": "Objective-C", + "kind": ["markup", "s", "Syntax"], + "details": "Specifies Objective-C code highlighting" + }, + { + "trigger": "objectivec", + "annotation": "Objective-C", + "kind": ["markup", "s", "Syntax"], + "details": "Specifies Objective-C code highlighting" + }, + { + "trigger": "obj-c", + "annotation": "Objective-C", + "kind": ["markup", "s", "Syntax"], + "details": "Specifies Objective-C code highlighting" + }, + { + "trigger": "objective-c", + "annotation": "Objective-C", + "kind": ["markup", "s", "Syntax"], + "details": "Specifies Objective-C code highlighting" + }, + { + "trigger": "objc++", + "annotation": "Objective-C++", + "kind": ["markup", "s", "Syntax"], + "details": "Specifies Objective-C++ code highlighting" + }, + { + "trigger": "objectivec++", + "annotation": "Objective-C++", + "kind": ["markup", "s", "Syntax"], + "details": "Specifies Objective-C++ code highlighting" + }, + { + "trigger": "obj-c++", + "annotation": "Objective-C++", + "kind": ["markup", "s", "Syntax"], + "details": "Specifies Objective-C++ code highlighting" + }, + { + "trigger": "objective-c++", + "annotation": "Objective-C++", + "kind": ["markup", "s", "Syntax"], + "details": "Specifies Objective-C++ code highlighting" + }, + + // OCaml + { + "trigger": "ocaml", + "annotation": "OCaml", + "kind": ["markup", "s", "Syntax"], + "details": "Specifies OCaml code highlighting" + }, + + // Perl + { + "trigger": "perl", + "annotation": "Perl 5", + "kind": ["markup", "s", "Syntax"], + "details": "Specifies Perl 5 code highlighting" + }, + { + "trigger": "perl5", + "annotation": "Perl 5", + "kind": ["markup", "s", "Syntax"], + "details": "Specifies Perl 5 code highlighting" + }, + + // PHP + { + "trigger": "html+php", + "annotation": "PHP", + "kind": ["markup", "s", "Syntax"], + "details": "Specifies HTML+PHP code highlighting" + }, + { + "trigger": "phtml", + "annotation": "PHP", + "kind": ["markup", "s", "Syntax"], + "details": "Specifies HTML+PHP code highlighting" + }, + { + "trigger": "inc", + "annotation": "PHP", + "kind": ["markup", "s", "Syntax"], + "details": "Specifies PHP code highlighting" + }, + { + "trigger": "php", + "annotation": "PHP", + "kind": ["markup", "s", "Syntax"], + "details": "Specifies PHP code highlighting" + }, + + // Python + { + "trigger": "python", + "annotation": "Python", + "kind": ["markup", "s", "Syntax"], + "details": "Specifies Python code highlighting" + }, + { + "trigger": "python3", + "annotation": "Python", + "kind": ["markup", "s", "Syntax"], + "details": "Specifies Python code highlighting" + }, + { + "trigger": "py", + "annotation": "Python", + "kind": ["markup", "s", "Syntax"], + "details": "Specifies Python code highlighting" + }, + + // R + { + "trigger": "r", + "annotation": "R", + "kind": ["markup", "s", "Syntax"], + "details": "Specifies R code highlighting" + }, + { + "trigger": "splus", + "annotation": "R", + "kind": ["markup", "s", "Syntax"], + "details": "Specifies R code highlighting" + }, + + // Ruby + { + "trigger": "ruby", + "annotation": "Ruby", + "kind": ["markup", "s", "Syntax"], + "details": "Specifies Ruby code highlighting" + }, + { + "trigger": "rb", + "annotation": "Ruby", + "kind": ["markup", "s", "Syntax"], + "details": "Specifies Ruby code highlighting" + }, + { + "trigger": "rbx", + "annotation": "Ruby on Rails", + "kind": ["markup", "s", "Syntax"], + "details": "Specifies Ruby on Rails code highlighting" + }, + + // Regular Expressions + { + "trigger": "regex", + "annotation": "Regular Expressions", + "kind": ["markup", "s", "Syntax"], + "details": "Specifies Regular Expressions code highlighting" + }, + { + "trigger": "regexp", + "annotation": "Regular Expressions", + "kind": ["markup", "s", "Syntax"], + "details": "Specifies Regular Expressions code highlighting" + }, + + // Rust + { + "trigger": "rust", + "annotation": "Rust", + "kind": ["markup", "s", "Syntax"], + "details": "Specifies Rust code highlighting" + }, + { + "trigger": "rs", + "annotation": "Rust", + "kind": ["markup", "s", "Syntax"], + "details": "Specifies Rust code highlighting" + }, + { + "trigger": "rscript", + "annotation": "R Script", + "kind": ["markup", "s", "Syntax"], + "details": "Specifies R Script code highlighting" + }, + + // Scala + { + "trigger": "scala", + "annotation": "Scala", + "kind": ["markup", "s", "Syntax"], + "details": "Specifies Scala code highlighting" + }, + + // ShellScript + { + "trigger": "bash", + "annotation": "Bourne Against Shell", + "kind": ["markup", "s", "Syntax"], + "details": "Specifies ShellScript code highlighting" + }, + { + "trigger": "console", + "annotation": "ShellScript", + "kind": ["markup", "s", "Syntax"], + "details": "Specifies ShellScript code highlighting" + }, + { + "trigger": "shell-script", + "annotation": "ShellScript", + "kind": ["markup", "s", "Syntax"], + "details": "Specifies ShellScript code highlighting" + }, + { + "trigger": "shell", + "annotation": "ShellScript", + "kind": ["markup", "s", "Syntax"], + "details": "Specifies ShellScript code highlighting" + }, + { + "trigger": "sh", + "annotation": "ShellScript", + "kind": ["markup", "s", "Syntax"], + "details": "Specifies ShellScript code highlighting" + }, + { + "trigger": "zsh", + "annotation": "ShellScript", + "kind": ["markup", "s", "Syntax"], + "details": "Specifies ShellScript code highlighting" + }, + + // SQL + { + "trigger": "sql", + "annotation": "SQL", + "kind": ["markup", "s", "Syntax"], + "details": "Specifies SQL code highlighting" + }, + + // XML + { + "trigger": "atom", + "annotation": "ATOM", + "kind": ["markup", "s", "Syntax"], + "details": "Specifies XML code highlighting" + }, + { + "trigger": "plist", + "annotation": "PList", + "kind": ["markup", "s", "Syntax"], + "details": "Specifies XML code highlighting" + }, + { + "trigger": "svg", + "annotation": "SVG", + "kind": ["markup", "s", "Syntax"], + "details": "Specifies XML code highlighting" + }, + { + "trigger": "xjb", + "annotation": "XJB", + "kind": ["markup", "s", "Syntax"], + "details": "Specifies XML code highlighting" + }, + { + "trigger": "xml", + "annotation": "XML", + "kind": ["markup", "s", "Syntax"], + "details": "Specifies XML code highlighting" + }, + { + "trigger": "xsd", + "annotation": "XSD", + "kind": ["markup", "s", "Syntax"], + "details": "Specifies XML code highlighting" + }, + { + "trigger": "xsl", + "annotation": "XSL", + "kind": ["markup", "s", "Syntax"], + "details": "Specifies XML code highlighting" + }, + + // YAML + { + "trigger": "yaml", + "annotation": "YAML", + "kind": ["markup", "s", "Syntax"], + "details": "Specifies YAML code highlighting" + }, + { + "trigger": "yml", + "annotation": "YAML", + "kind": ["markup", "s", "Syntax"], + "details": "Specifies YAML code highlighting" + }, + ], +} diff --git a/syntaxes/Markdown.sublime-syntax b/syntaxes/Markdown.sublime-syntax index 662378ff..3b3f6eef 100644 --- a/syntaxes/Markdown.sublime-syntax +++ b/syntaxes/Markdown.sublime-syntax @@ -1127,7 +1127,7 @@ contexts: - match: |- (?x) {{fenced_code_block_start}} - (?i:\s*(applescript|osascript)) + (?i:\s*(applescript|osascript|scpt)) {{fenced_code_block_trailing_infostring_characters}} captures: 0: meta.code-fence.definition.begin.applescript.markdown-gfm @@ -1247,7 +1247,7 @@ contexts: - match: |- (?x) {{fenced_code_block_start}} - (?i:\s*(diff|patch)) + (?i:\s*(u?diff|patch)) {{fenced_code_block_trailing_infostring_characters}} captures: 0: meta.code-fence.definition.begin.diff.markdown-gfm @@ -1267,7 +1267,7 @@ contexts: - match: |- (?x) {{fenced_code_block_start}} - (?i:\s*(bat|cmd|dos)) + (?i:\s*(bat(?:ch(?:file)?)?|cmd|(?:dos|win)batch)) {{fenced_code_block_trailing_infostring_characters}} captures: 0: meta.code-fence.definition.begin.dosbatch.markdown-gfm @@ -1287,7 +1287,7 @@ contexts: - match: |- (?x) {{fenced_code_block_start}} - (?i:\s*(erlang|escript)) + (?i:\s*(erl(?:ang)?|escript)) {{fenced_code_block_trailing_infostring_characters}} captures: 0: meta.code-fence.definition.begin.erlang.markdown-gfm @@ -1307,7 +1307,7 @@ contexts: - match: |- (?x) {{fenced_code_block_start}} - (?i:\s*(graphviz)) + (?i:\s*(dot|graphviz|gv)) {{fenced_code_block_trailing_infostring_characters}} captures: 0: meta.code-fence.definition.begin.graphviz.markdown-gfm @@ -1347,7 +1347,7 @@ contexts: - match: |- (?x) {{fenced_code_block_start}} - (?i:\s*(haskell)) + (?i:\s*(haskell|hsc?)) {{fenced_code_block_trailing_infostring_characters}} captures: 0: meta.code-fence.definition.begin.haskell.markdown-gfm @@ -1367,7 +1367,7 @@ contexts: - match: |- (?x) {{fenced_code_block_start}} - (?i:\s*(html\+php)) + (?i:\s*(html\+php|phtml)) {{fenced_code_block_trailing_infostring_characters}} captures: 0: meta.code-fence.definition.begin.html-php.markdown-gfm @@ -1387,7 +1387,7 @@ contexts: - match: |- (?x) {{fenced_code_block_start}} - (?i:\s*(html)) + (?i:\s*(x?html)) {{fenced_code_block_trailing_infostring_characters}} captures: 0: meta.code-fence.definition.begin.html.markdown-gfm @@ -1427,7 +1427,7 @@ contexts: - match: |- (?x) {{fenced_code_block_start}} - (?i:\s*(javascript|js)) + (?i:\s*(javascript|js|node)) {{fenced_code_block_trailing_infostring_characters}} captures: 0: meta.code-fence.definition.begin.javascript.markdown-gfm @@ -1567,7 +1567,7 @@ contexts: - match: |- (?x) {{fenced_code_block_start}} - (?i:\s*(makefile)) + (?i:\s*(make(?:file)?|mf)) {{fenced_code_block_trailing_infostring_characters}} captures: 0: meta.code-fence.definition.begin.makefile.markdown-gfm @@ -1669,7 +1669,7 @@ contexts: - match: |- (?x) {{fenced_code_block_start}} - (?i:\s*(perl)) + (?i:\s*(perl5?)) {{fenced_code_block_trailing_infostring_characters}} captures: 0: meta.code-fence.definition.begin.perl.markdown-gfm @@ -1709,7 +1709,7 @@ contexts: - match: |- (?x) {{fenced_code_block_start}} - (?i:\s*(python|py)) + (?i:\s*(python3?|py)) {{fenced_code_block_trailing_infostring_characters}} captures: 0: meta.code-fence.definition.begin.python.markdown-gfm @@ -1909,7 +1909,7 @@ contexts: - match: |- (?x) {{fenced_code_block_start}} - (?i:\s*(typescript|ts)) + (?i:\s*(typescript|ts(?:node)?)) {{fenced_code_block_trailing_infostring_characters}} captures: 0: meta.code-fence.definition.begin.typescript.markdown-gfm @@ -3738,7 +3738,7 @@ contexts: - meta_scope: meta.link.inet.markdown markup.underline.link.markdown-gfm # 1. When an autolink ends in ), we scan the entire autolink for the total # number of parentheses. If there is a greater number of closing parentheses - # than opening ones, we don’t consider the last character part of the + # than opening ones, we don’t consider the last character part of the # autolink, in order to facilitate including an autolink inside a parenthesis # 2. If an autolink ends in a semicolon (;), we check to see if it appears to # resemble an entity reference; if the preceding text is & followed by one