syntaxes/DocTeX.tmLanguage.json

changeset 0
aa9fc390ce91
equal deleted inserted replaced
-1:000000000000 0:aa9fc390ce91
1 {
2 "fileTypes": [
3 "dtx"
4 ],
5 "name": "DocTeX+",
6 "patterns": [
7 {
8 "captures": {
9 "1": {
10 "name": "punctuation.definition.verb.latex"
11 },
12 "2": {
13 "name": "markup.raw.verb.latex"
14 },
15 "3": {
16 "name": "punctuation.definition.verb.latex"
17 }
18 },
19 "match": "(\\|)([^\\|]*)(\\|)",
20 "name": "meta.function.verb.latex"
21 },
22 {
23 "begin": "^(%)(\\\\begin\\{macrocode\\})",
24 "captures": {
25 "1": {
26 "name": "comment.line.percentage.doctex"
27 },
28 "2": {
29 "name": "entity.name.tag.macrocode.doctex"
30 }
31 },
32 "end": "^(%)(\\\\end\\{macrocode\\})",
33 "patterns": [
34 {
35 "include": "#guards"
36 },
37 {
38 "include": "text.tex.latex.expl3"
39 },
40 {
41 "include": "text.tex"
42 }
43 ]
44 },
45 {
46 "include": "#guards"
47 },
48 {
49 "match": "(^[ \\t]*)%?%",
50 "name": "comment.line.percentage.doctex"
51 },
52 {
53 "match": "\\^\\^A.*$\\n?",
54 "name": "comment.line.percentage.tex"
55 },
56 {
57 "match": "(?<=[^%\\\\])%",
58 "name": "invalid"
59 },
60 {
61 "include": "text.tex.latex.expl3"
62 }
63 ],
64 "repository": {
65 "guards": {
66 "match": "^%(\\<[^\\>]*\\>)",
67 "name": "entity.name.function.filename.latex"
68 }
69 },
70 "scopeName": "text.tex.doctex",
71 "uuid": "6BC8DE6F-9360-4C7E-AC3C-971385945346"
72 }

mercurial