Path: blob/main/extensions/markdown-math/syntaxes/md-math.tmLanguage.json
3291 views
{1"information_for_contributors": [2"This file includes some grammar rules copied from https://github.com/James-Yu/LaTeX-Workshop/blob/master/syntax/TeX.tmLanguage.json"3],4"name": "Markdown Math",5"scopeName": "text.html.markdown.math",6"patterns": [7{8"include": "#math"9}10],11"repository": {12"math": {13"patterns": [14{15"name": "comment.line.math.tex",16"match": "((?<!\\\\)%)(.+)$",17"captures": {18"1": {19"name": "punctuation.definition.comment.math.tex"20}21}22},23{24"name": "line.separator.math.tex",25"match": "(\\\\\\\\)$",26"captures": {27"1": {28"name": "punctuation.line.separator.math.tex"29}30}31},32{33"name": "meta.function.math.tex",34"begin": "((\\\\)([a-zA-Z_]+))\\s*(\\{)",35"beginCaptures": {36"1": {37"name": "storage.type.function.math.tex"38},39"2": {40"name": "punctuation.definition.function.math.tex"41},42"3": {43"name": "entity.name.function.math.tex"44},45"4": {46"name": "punctuation.definition.arguments.begin.math.tex"47}48},49"end": "\\}",50"endCaptures": {51"0": {52"name": "punctuation.definition.arguments.end.math.tex"53}54},55"patterns": [56{57"include": "$self"58}59]60},61{62"captures": {63"1": {64"name": "punctuation.definition.constant.math.tex"65}66},67"match": "(\\\\)([a-zA-Z_]+)\\b",68"name": "constant.character.math.tex"69},70{71"captures": {72"1": {73"name": "punctuation.definition.constant.math.tex"74}75},76"match": "(\\\\)(?!begin\\*\\{|verb)([A-Za-z]+)",77"name": "constant.other.general.math.tex"78},79{80"match": "(?<!\\\\)\\{",81"name": "punctuation.math.begin.bracket.curly"82},83{84"match": "(?<!\\\\)\\}",85"name": "punctuation.math.end.bracket.curly"86},87{88"match": "\\(",89"name": "punctuation.math.begin.bracket.round"90},91{92"match": "\\)",93"name": "punctuation.math.end.bracket.round"94},95{96"match": "(([0-9]*[\\.][0-9]+)|[0-9]+)",97"name": "constant.numeric.math.tex"98},99{100"match": "[\\+\\*/_\\^-]",101"name": "punctuation.math.operator.latex"102}103]104}105}106}107108109