textpow 0.10.1 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (193) hide show
  1. data/.travis.yml +7 -0
  2. data/Gemfile +10 -0
  3. data/Gemfile.lock +30 -0
  4. data/{History.txt → History.rdoc} +10 -0
  5. data/{README.txt → MIT-LICENSE.txt} +0 -30
  6. data/README.rdoc +82 -0
  7. data/Rakefile +42 -49
  8. data/bin/plist2syntax +0 -0
  9. data/bin/plist2yaml +0 -0
  10. data/examples/benchmark_js.rb +13 -0
  11. data/examples/jquery.js +9046 -0
  12. data/lib/textpow.rb +43 -3
  13. data/lib/textpow/debug_processor.rb +35 -35
  14. data/lib/textpow/recording_processor.rb +13 -0
  15. data/lib/textpow/score_manager.rb +60 -60
  16. data/lib/textpow/syntax.rb +303 -262
  17. data/lib/textpow/syntax/broken/markdown.syntax +519 -0
  18. data/lib/textpow/syntax/broken/php.syntax +1253 -0
  19. data/lib/textpow/syntax/buggy/nemerle.syntax +74 -0
  20. data/lib/textpow/syntax/old/YAML.yaml +160 -0
  21. data/lib/textpow/syntax/old/txt2tags.yaml +139 -0
  22. data/lib/textpow/syntax/source.actionscript.syntax +97 -0
  23. data/lib/textpow/syntax/source.active4d.library.syntax +21 -0
  24. data/lib/textpow/syntax/source.active4d.syntax +276 -0
  25. data/lib/textpow/syntax/source.ada.syntax +33 -0
  26. data/lib/textpow/syntax/source.antlr.syntax +151 -0
  27. data/lib/textpow/syntax/source.apache-config.mod_perl.syntax +50 -0
  28. data/lib/textpow/syntax/source.apache-config.syntax +191 -0
  29. data/lib/textpow/syntax/source.applescript.syntax +384 -0
  30. data/lib/textpow/syntax/source.asp.syntax +70 -0
  31. data/lib/textpow/syntax/source.asp.vb.net.syntax +129 -0
  32. data/lib/textpow/syntax/source.c++.qt.syntax +26 -0
  33. data/lib/textpow/syntax/source.c++.syntax +186 -0
  34. data/lib/textpow/syntax/source.c-sharp.syntax +59 -0
  35. data/lib/textpow/syntax/source.c.ragel.syntax +201 -0
  36. data/lib/textpow/syntax/source.c.syntax +414 -0
  37. data/lib/textpow/syntax/source.camlp4.ocaml.syntax +36 -0
  38. data/lib/textpow/syntax/source.cm.syntax +32 -0
  39. data/lib/textpow/syntax/source.coffee.syntax +216 -0
  40. data/lib/textpow/syntax/source.context-free.syntax +176 -0
  41. data/lib/textpow/syntax/source.css.beta.syntax +1925 -0
  42. data/lib/textpow/syntax/source.css.syntax +195 -0
  43. data/lib/textpow/syntax/source.d.syntax +142 -0
  44. data/lib/textpow/syntax/source.diff.syntax +81 -0
  45. data/lib/textpow/syntax/source.dot.syntax +47 -0
  46. data/lib/textpow/syntax/source.dylan.syntax +62 -0
  47. data/lib/textpow/syntax/source.eiffel.syntax +78 -0
  48. data/lib/textpow/syntax/source.erlang.syntax +922 -0
  49. data/lib/textpow/syntax/source.fortran.syntax +141 -0
  50. data/lib/textpow/syntax/source.fscript.syntax +80 -0
  51. data/lib/textpow/syntax/source.fxscript.syntax +142 -0
  52. data/lib/textpow/syntax/source.gri.syntax +83 -0
  53. data/lib/textpow/syntax/source.groovy.groovy.syntax +191 -0
  54. data/lib/textpow/syntax/source.haskell.syntax +88 -0
  55. data/lib/textpow/syntax/source.icalendar.syntax +32 -0
  56. data/lib/textpow/syntax/source.inform.syntax +48 -0
  57. data/lib/textpow/syntax/source.ini.syntax +55 -0
  58. data/lib/textpow/syntax/source.io.syntax +81 -0
  59. data/lib/textpow/syntax/source.java-props.syntax +20 -0
  60. data/lib/textpow/syntax/source.java.syntax +211 -0
  61. data/lib/textpow/syntax/source.js.greasemonkey.syntax +34 -0
  62. data/lib/textpow/syntax/source.js.jquery.syntax +114 -0
  63. data/lib/textpow/syntax/source.js.mootools.syntax +572 -0
  64. data/lib/textpow/syntax/source.js.prototype.bracketed.syntax +140 -0
  65. data/lib/textpow/syntax/source.js.prototype.syntax +72 -0
  66. data/lib/textpow/syntax/source.js.syntax +256 -0
  67. data/lib/textpow/syntax/source.js.yui.syntax +176 -0
  68. data/lib/textpow/syntax/source.json.syntax +136 -0
  69. data/lib/textpow/syntax/source.lex.syntax +219 -0
  70. data/lib/textpow/syntax/source.lighttpd-config.syntax +54 -0
  71. data/lib/textpow/syntax/source.lilypond.syntax +492 -0
  72. data/lib/textpow/syntax/source.lisp.syntax +61 -0
  73. data/lib/textpow/syntax/source.logo.syntax +29 -0
  74. data/lib/textpow/syntax/source.logtalk.syntax +152 -0
  75. data/lib/textpow/syntax/source.lua.syntax +86 -0
  76. data/lib/textpow/syntax/source.makefile.syntax +36 -0
  77. data/lib/textpow/syntax/source.matlab.syntax +142 -0
  78. data/lib/textpow/syntax/source.mel.syntax +92 -0
  79. data/lib/textpow/syntax/source.mips.syntax +66 -0
  80. data/lib/textpow/syntax/source.ml.syntax +121 -0
  81. data/lib/textpow/syntax/source.modula-3.syntax +47 -0
  82. data/lib/textpow/syntax/source.nant-build.syntax +53 -0
  83. data/lib/textpow/syntax/source.objc++.syntax +18 -0
  84. data/lib/textpow/syntax/source.objc.syntax +233 -0
  85. data/lib/textpow/syntax/source.ocaml.syntax +764 -0
  86. data/lib/textpow/syntax/source.ocamllex.syntax +167 -0
  87. data/lib/textpow/syntax/source.ocamlyacc.syntax +184 -0
  88. data/lib/textpow/syntax/source.open-gl.syntax +14 -0
  89. data/lib/textpow/syntax/source.pascal.syntax +77 -0
  90. data/lib/textpow/syntax/source.pascal.vectorscript.syntax +57 -0
  91. data/lib/textpow/syntax/source.perl.syntax +1113 -0
  92. data/lib/textpow/syntax/source.php.cake.syntax +55 -0
  93. data/lib/textpow/syntax/source.plist.tm-grammar.syntax +708 -0
  94. data/lib/textpow/syntax/source.postscript.syntax +114 -0
  95. data/lib/textpow/syntax/source.processing.syntax +106 -0
  96. data/lib/textpow/syntax/source.prolog.syntax +40 -0
  97. data/lib/textpow/syntax/source.python.django.syntax +21 -0
  98. data/lib/textpow/syntax/source.python.syntax +868 -0
  99. data/lib/textpow/syntax/source.qmake.syntax +114 -0
  100. data/lib/textpow/syntax/source.quake-config.syntax +32 -0
  101. data/lib/textpow/syntax/source.r-console.syntax +16 -0
  102. data/lib/textpow/syntax/source.r.syntax +81 -0
  103. data/lib/textpow/syntax/source.regexp.oniguruma.syntax +107 -0
  104. data/lib/textpow/syntax/source.regexp.python.syntax +109 -0
  105. data/lib/textpow/syntax/source.regexp.syntax +50 -0
  106. data/lib/textpow/syntax/source.remind.syntax +253 -0
  107. data/lib/textpow/syntax/source.rez.syntax +80 -0
  108. data/lib/textpow/syntax/source.ruby.experimental.syntax +145 -0
  109. data/lib/textpow/syntax/source.ruby.rails.syntax +88 -0
  110. data/lib/textpow/syntax/source.ruby.syntax +1035 -0
  111. data/lib/textpow/syntax/source.s5.syntax +69 -0
  112. data/lib/textpow/syntax/source.sass.syntax +45 -0
  113. data/lib/textpow/syntax/source.scheme.syntax +347 -0
  114. data/lib/textpow/syntax/source.scilab.syntax +41 -0
  115. data/lib/textpow/syntax/source.scss.syntax +527 -0
  116. data/lib/textpow/syntax/source.shell.syntax +384 -0
  117. data/lib/textpow/syntax/source.slate.syntax +149 -0
  118. data/lib/textpow/syntax/source.smarty.syntax +63 -0
  119. data/lib/textpow/syntax/source.sql.ruby.syntax +18 -0
  120. data/lib/textpow/syntax/source.sql.syntax +237 -0
  121. data/lib/textpow/syntax/source.ssh-config.syntax +33 -0
  122. data/lib/textpow/syntax/source.strings.syntax +39 -0
  123. data/lib/textpow/syntax/source.swig.syntax +57 -0
  124. data/lib/textpow/syntax/source.tcl.macports.syntax +163 -0
  125. data/lib/textpow/syntax/source.tcl.syntax +152 -0
  126. data/lib/textpow/syntax/source.yaml.syntax +160 -0
  127. data/lib/textpow/syntax/text.active4d-ini.syntax +50 -0
  128. data/lib/textpow/syntax/text.bbcode.syntax +287 -0
  129. data/lib/textpow/syntax/text.bibtex.syntax +151 -0
  130. data/lib/textpow/syntax/text.blog.html.syntax +41 -0
  131. data/lib/textpow/syntax/text.blog.markdown.syntax +42 -0
  132. data/lib/textpow/syntax/text.blog.syntax +27 -0
  133. data/lib/textpow/syntax/text.blog.textile.syntax +27 -0
  134. data/lib/textpow/syntax/text.gtdalt.syntax +143 -0
  135. data/lib/textpow/syntax/text.haml.syntax +88 -0
  136. data/lib/textpow/syntax/text.html.asp.net.syntax +424 -0
  137. data/lib/textpow/syntax/text.html.asp.syntax +27 -0
  138. data/lib/textpow/syntax/text.html.basic.syntax +362 -0
  139. data/lib/textpow/syntax/text.html.cfm.syntax +119 -0
  140. data/lib/textpow/syntax/text.html.django.syntax +36 -0
  141. data/lib/textpow/syntax/text.html.dokuwiki.syntax +204 -0
  142. data/lib/textpow/syntax/text.html.doxygen.syntax +43 -0
  143. data/lib/textpow/syntax/text.html.markdown.multimarkdown.syntax +39 -0
  144. data/lib/textpow/syntax/text.html.mason.syntax +119 -0
  145. data/lib/textpow/syntax/text.html.mediawiki.syntax +567 -0
  146. data/lib/textpow/syntax/text.html.mt.syntax +162 -0
  147. data/lib/textpow/syntax/text.html.ruby.syntax +40 -0
  148. data/lib/textpow/syntax/text.html.strict.active4d.syntax +311 -0
  149. data/lib/textpow/syntax/text.html.tcl.syntax +26 -0
  150. data/lib/textpow/syntax/text.html.textile.syntax +215 -0
  151. data/lib/textpow/syntax/text.html.tt.syntax +121 -0
  152. data/lib/textpow/syntax/text.html.twiki.syntax +241 -0
  153. data/lib/textpow/syntax/text.html.xhtml.1-strict.syntax +4027 -0
  154. data/lib/textpow/syntax/text.log.latex.syntax +50 -0
  155. data/lib/textpow/syntax/text.mail.markdown.syntax +118 -0
  156. data/lib/textpow/syntax/text.man.syntax +17 -0
  157. data/lib/textpow/syntax/text.moinmoin.syntax +189 -0
  158. data/lib/textpow/syntax/text.plain.gtd.syntax +22 -0
  159. data/lib/textpow/syntax/text.plain.release-notes.syntax +46 -0
  160. data/lib/textpow/syntax/text.plain.syntax +32 -0
  161. data/lib/textpow/syntax/text.plist.syntax +635 -0
  162. data/lib/textpow/syntax/text.pmwiki.syntax +113 -0
  163. data/lib/textpow/syntax/text.restructuredtext.syntax +250 -0
  164. data/lib/textpow/syntax/text.setext.syntax +147 -0
  165. data/lib/textpow/syntax/text.subversion-commit.syntax +36 -0
  166. data/lib/textpow/syntax/text.tabular.csv.syntax +68 -0
  167. data/lib/textpow/syntax/text.tabular.tsv.syntax +50 -0
  168. data/lib/textpow/syntax/text.tex.latex.beamer.syntax +41 -0
  169. data/lib/textpow/syntax/text.tex.latex.haskell.syntax +24 -0
  170. data/lib/textpow/syntax/text.tex.latex.memoir.syntax +64 -0
  171. data/lib/textpow/syntax/text.tex.latex.rd.syntax +91 -0
  172. data/lib/textpow/syntax/text.tex.latex.sweave.syntax +84 -0
  173. data/lib/textpow/syntax/text.tex.latex.syntax +566 -0
  174. data/lib/textpow/syntax/text.tex.math.syntax +49 -0
  175. data/lib/textpow/syntax/text.tex.syntax +86 -0
  176. data/lib/textpow/syntax/text.txt2tags.syntax +79 -0
  177. data/lib/textpow/syntax/text.xml.apple-dist.syntax +77 -0
  178. data/lib/textpow/syntax/text.xml.strict.syntax +92 -0
  179. data/lib/textpow/syntax/text.xml.syntax +180 -0
  180. data/lib/textpow/syntax/text.xml.xsl.syntax +60 -0
  181. data/lib/textpow/version.rb +3 -0
  182. data/spec/fixtures/objeck.plist +107 -0
  183. data/spec/fixtures/utf8.txt +1 -0
  184. data/spec/spec_helper.rb +2 -0
  185. data/spec/textpow/score_manager_spec.rb +20 -0
  186. data/spec/textpow/syntax_files_spec.rb +26 -0
  187. data/spec/textpow/syntax_spec.rb +225 -0
  188. data/spec/textpow_spec.rb +57 -0
  189. data/textpow.gemspec +19 -0
  190. metadata +246 -68
  191. data/Manifest.txt +0 -13
  192. data/mm/manual.mm +0 -266
  193. data/test/test_textpow.rb +0 -25
@@ -0,0 +1,49 @@
1
+ ---
2
+ name: TeX Math
3
+ fileTypes: []
4
+
5
+ scopeName: text.tex.math
6
+ uuid: 027D6AF4-E9D3-4250-82A1-8A42EEFE4F76
7
+ foldingStartMarker: /\*\*|\{\s*$
8
+ patterns:
9
+ - name: constant.character.math.tex
10
+ captures:
11
+ "1":
12
+ name: punctuation.definition.constant.math.tex
13
+ match: (\\)(s(s(earrow|warrow|lash)|h(ort(downarrow|uparrow|parallel|leftarrow|rightarrow|mid)|arp)|tar|i(gma|m(eq)?)|u(cc(sim|n(sim|approx)|curlyeq|eq|approx)?|pset(neq(q)?|plus(eq)?|eq(q)?)?|rd|m|bset(neq(q)?|plus(eq)?|eq(q)?)?)|p(hericalangle|adesuit)|e(tminus|arrow)|q(su(pset(eq)?|bset(eq)?)|c(up|ap)|uare)|warrow|m(ile|all(s(etminus|mile)|frown)))|h(slash|ook(leftarrow|rightarrow)|eartsuit|bar)|R(sh|ightarrow|e|bag)|Gam(e|ma)|n(s(hort(parallel|mid)|im|u(cc(eq)?|pseteq(q)?|bseteq))|Rightarrow|n(earrow|warrow)|cong|triangle(left(eq(slant)?)?|right(eq(slant)?)?)|i(plus)?|u|p(lus|arallel|rec(eq)?)|e(q|arrow|g|xists)|v(dash|Dash)|warrow|le(ss|q(slant|q)?|ft(arrow|rightarrow))|a(tural|bla)|VDash|rightarrow|g(tr|eq(slant|q)?)|mid|Left(arrow|rightarrow))|c(hi|irc(eq|le(d(circ|S|dash|ast)|arrow(left|right)))?|o(ng|prod|lon|mplement)|dot(s|p)?|u(p|r(vearrow(left|right)|ly(eq(succ|prec)|vee(downarrow|uparrow)?|wedge(downarrow|uparrow)?)))|enterdot|lubsuit|ap)|Xi|Maps(to(char)?|from(char)?)|B(ox|umpeq|bbk)|t(h(ick(sim|approx)|e(ta|refore))|imes|op|wohead(leftarrow|rightarrow)|a(u|lloblong)|riangle(down|q|left(eq(slant)?)?|right(eq(slant)?)?)?)|i(n(t(er(cal|leave))?|plus|fty)?|ota|math)|S(igma|u(pset|bset))|zeta|o(slash|times|int|dot|plus|vee|wedge|lessthan|greaterthan|m(inus|ega)|b(slash|long|ar))|d(i(v(ideontimes)?|a(g(down|up)|mond(suit)?)|gamma)|o(t(plus|eq(dot)?)|ublebarwedge|wn(harpoon(left|right)|downarrows|arrow))|d(ots|agger)|elta|a(sh(v|leftarrow|rightarrow)|leth|gger))|Y(down|up|left|right)|C(up|ap)|u(n(lhd|rhd)|p(silon|harpoon(left|right)|downarrow|uparrows|lus|arrow)|lcorner|rcorner)|jmath|Theta|Im|p(si|hi|i(tchfork)?|erp|ar(tial|allel)|r(ime|o(d|pto)|ec(sim|n(sim|approx)|curlyeq|eq|approx)?)|m)|e(t(h|a)|psilon|q(slant(less|gtr)|circ|uiv)|ll|xists|mptyset)|Omega|D(iamond|ownarrow|elta)|v(d(ots|ash)|ee(bar)?|Dash|ar(s(igma|u(psetneq(q)?|bsetneq(q)?))|nothing|curly(vee|wedge)|t(heta|imes|riangle(left|right)?)|o(slash|circle|times|dot|plus|vee|wedge|lessthan|ast|greaterthan|minus|b(slash|ar))|p(hi|i|ropto)|epsilon|kappa|rho|bigcirc))|kappa|Up(silon|downarrow|arrow)|Join|f(orall|lat|a(t(s(emi|lash)|bslash)|llingdotseq)|rown)|P(si|hi|i)|w(p|edge|r)|l(hd|n(sim|eq(q)?|approx)|ceil|times|ightning|o(ng(left(arrow|rightarrow)|rightarrow|maps(to|from))|zenge|oparrow(left|right))|dot(s|p)|e(ss(sim|dot|eq(qgtr|gtr)|approx|gtr)|q(slant|q)?|ft(slice|harpoon(down|up)|threetimes|leftarrows|arrow(t(ail|riangle))?|right(squigarrow|harpoons|arrow(s|triangle|eq)?))|adsto)|vertneqq|floor|l(c(orner|eil)|floor|l|bracket)?|a(ngle|mbda)|rcorner|bag)|a(s(ymp|t)|ngle|pprox(eq)?|l(pha|eph)|rrownot|malg)|V(dash|vdash)|r(h(o|d)|ceil|times|i(singdotseq|ght(s(quigarrow|lice)|harpoon(down|up)|threetimes|left(harpoons|arrows)|arrow(t(ail|riangle))?|rightarrows))|floor|angle|r(ceil|parenthesis|floor|bracket)|bag)|g(n(sim|eq(q)?|approx)|tr(sim|dot|eq(qless|less)|less|approx)|imel|eq(slant|q)?|vertneqq|amma|g(g)?)|Finv|xi|m(ho|i(nuso|d)|o(o|dels)|u(ltimap)?|p|e(asuredangle|rge)|aps(to|from(char)?))|b(i(n(dnasrepma|ampersand)|g(s(tar|qc(up|ap))|nplus|c(irc|u(p|rly(vee|wedge))|ap)|triangle(down|up)|interleave|o(times|dot|plus)|uplus|parallel|vee|wedge|box))|o(t|wtie|x(slash|circle|times|dot|plus|empty|ast|minus|b(slash|ox|ar)))|u(llet|mpeq)|e(cause|t(h|ween|a))|lack(square|triangle(down|left|right)?|lozenge)|a(ck(s(im(eq)?|lash)|prime|epsilon)|r(o|wedge))|bslash)|L(sh|ong(left(arrow|rightarrow)|rightarrow|maps(to|from))|eft(arrow|rightarrow)|leftarrow|ambda|bag)|Arrownot)\b
14
+ - name: constant.character.math.tex
15
+ captures:
16
+ "1":
17
+ name: punctuation.definition.constant.math.tex
18
+ match: (\\)(sum|prod|coprod|int|oint|bigcap|bigcup|bigsqcup|bigvee|bigwedge|bigodot|bigotimes|bogoplus|biguplus)\b
19
+ - name: constant.other.math.tex
20
+ captures:
21
+ "1":
22
+ name: punctuation.definition.constant.math.tex
23
+ match: (\\)(arccos|arcsin|arctan|arg|cos|cosh|cot|coth|csc|deg|det|dim|exp|gcd|hom|inf|ker|lg|lim|liminf|limsup|ln|log|max|min|pr|sec|sin|sinh|sup|tan|tanh)\b
24
+ - name: meta.function.sexpr.math.tex
25
+ endCaptures:
26
+ "1":
27
+ name: punctuation.section.embedded.end.math.tex
28
+ begin: ((\\)Sexpr)(\{)
29
+ contentName: source.r.embedded.math.tex
30
+ beginCaptures:
31
+ "1":
32
+ name: support.function.sexpr.math.tex
33
+ "2":
34
+ name: punctuation.definition.function.math.tex
35
+ "3":
36
+ name: punctuation.section.embedded.begin.math.tex
37
+ end: (\})
38
+ patterns:
39
+ - include: source.r
40
+ - name: constant.other.general.math.tex
41
+ captures:
42
+ "1":
43
+ name: punctuation.definition.constant.math.tex
44
+ match: (\\)([^a-zA-Z]|[A-Za-z]+)(?=\b|\}|\]|\^|\_)
45
+ - name: constant.numeric.math.tex
46
+ match: (([0-9]*[\.][0-9]+)|[0-9]+)
47
+ - name: meta.placeholder.greek.math.tex
48
+ match: "\xC2\xABpress a-z and space for greek letter\xC2\xBB[a-zA-Z]*"
49
+ foldingStopMarker: \*\*/|^\s*\}
@@ -0,0 +1,86 @@
1
+ ---
2
+ name: TeX
3
+ fileTypes:
4
+ - sty
5
+ - cls
6
+ scopeName: text.tex
7
+ uuid: 6BC8DE6F-9360-4C7E-AC3C-971385945346
8
+ foldingStartMarker: /\*\*|\{\s*$
9
+ patterns:
10
+ - name: keyword.control.tex
11
+ captures:
12
+ "1":
13
+ name: punctuation.definition.keyword.tex
14
+ match: (\\)(backmatter|else|fi|frontmatter|ftrue|mainmatter|if(case|cat|dim|eof|false|hbox|hmode|inner|mmode|num|odd|undefined|vbox|vmode|void|x)?)\b
15
+ - name: meta.catcode.tex
16
+ captures:
17
+ "1":
18
+ name: keyword.control.catcode.tex
19
+ "2":
20
+ name: punctuation.definition.keyword.tex
21
+ "3":
22
+ name: punctuation.separator.key-value.tex
23
+ "4":
24
+ name: constant.numeric.category.tex
25
+ match: ((\\)catcode)`(?:\\)?.(=)(\d+)
26
+ - name: comment.line.percentage.semicolon.texshop.tex
27
+ captures:
28
+ "1":
29
+ name: punctuation.definition.comment.tex
30
+ match: (%:).*$\n?
31
+ - name: comment.line.percentage.tex
32
+ captures:
33
+ "1":
34
+ name: punctuation.definition.comment.tex
35
+ match: (%).*$\n?
36
+ - name: meta.group.braces.tex
37
+ captures:
38
+ "0":
39
+ name: punctuation.section.group.tex
40
+ begin: \{
41
+ end: \}
42
+ patterns:
43
+ - include: $base
44
+ - name: punctuation.definition.brackets.tex
45
+ match: "[\\[\\]]"
46
+ - name: string.other.math.block.tex
47
+ endCaptures:
48
+ "0":
49
+ name: punctuation.definition.string.end.tex
50
+ begin: \$\$
51
+ beginCaptures:
52
+ "0":
53
+ name: punctuation.definition.string.begin.tex
54
+ end: \$\$
55
+ patterns:
56
+ - include: text.tex.math
57
+ - include: $self
58
+ - name: constant.character.newline.tex
59
+ match: \\\\
60
+ - name: string.other.math.tex
61
+ endCaptures:
62
+ "0":
63
+ name: punctuation.definition.string.end.tex
64
+ begin: \$
65
+ beginCaptures:
66
+ "0":
67
+ name: punctuation.definition.string.begin.tex
68
+ end: \$
69
+ patterns:
70
+ - name: constant.character.escape.tex
71
+ match: \\\$
72
+ - include: text.tex.math
73
+ - include: $self
74
+ - name: support.function.general.tex
75
+ captures:
76
+ "1":
77
+ name: punctuation.definition.function.tex
78
+ match: (\\)[A-Za-z@]+
79
+ - name: constant.character.escape.tex
80
+ captures:
81
+ "1":
82
+ name: punctuation.definition.keyword.tex
83
+ match: (\\)[^a-zA-Z@]
84
+ - name: meta.placeholder.greek.tex
85
+ match: "\xC2\xABpress a-z and space for greek letter\xC2\xBB[a-zA-Z]*"
86
+ foldingStopMarker: \*\*/|^\s*\}
@@ -0,0 +1,79 @@
1
+ ---
2
+ name: Txt2tags
3
+ fileTypes:
4
+ - t2t
5
+ scopeName: text.txt2tags
6
+ uuid: B5A751C0-2CE4-41A5-99FB-7B673943DE60
7
+ patterns:
8
+ - name: comment.block.txt2tags
9
+ begin: ^%%%\s*$
10
+ end: ^%%%\s*$\n?
11
+ - name: string.unquoted.txt2tags
12
+ match: ^\s*[_=-]{20,}\s*$\n?
13
+ - name: markup.underline.txt2tags
14
+ match: __([^\s](|.*?[^\s])_*)__
15
+ - name: markup.bold.txt2tags
16
+ match: \*\*([^\s](|.*?[^\s])\**)\*\*
17
+ - name: markup.heading.1.txt2tags
18
+ match: ^\s*={1}[^=](|.*[^=])={1}(\[[\w-]*\])?\s*$\n?
19
+ - name: markup.heading.2.txt2tags
20
+ match: ^\s*={2}[^=](|.*[^=])={2}(\[[\w-]*\])?\s*$\n?
21
+ - name: markup.heading.3.txt2tags
22
+ match: ^\s*={3}[^=](|.*[^=])={3}(\[[\w-]*\])?\s*$\n?
23
+ - name: markup.heading.4.txt2tags
24
+ match: ^\s*={4}[^=](|.*[^=])={4}(\[[\w-]*\])?\s*$\n?
25
+ - name: markup.heading.5.txt2tags
26
+ match: ^\s*={5}[^=](|.*[^=])={5}(\[[\w-]*\])?\s*$\n?
27
+ - name: markup.heading.1.txt2tags
28
+ match: ^\s*\+{1}[^+](|.*[^+])\+{1}(\[[\w-]*\])?\s*$\n?
29
+ - name: markup.heading.2.txt2tags
30
+ match: ^\s*\+{2}[^+](|.*[^+])\+{2}(\[[\w-]*\])?\s*$\n?
31
+ - name: markup.heading.3.txt2tags
32
+ match: ^\s*\+{3}[^+](|.*[^+])\+{3}(\[[\w-]*\])?\s*$\n?
33
+ - name: markup.heading.4.txt2tags
34
+ match: ^\s*\+{4}[^+](|.*[^+])\+{4}(\[[\w-]*\])?\s*$\n?
35
+ - name: markup.heading.5.txt2tags
36
+ match: ^\s*\+{5}[^+](|.*[^+])\+{5}(\[[\w-]*\])?\s*$\n?
37
+ - name: markup.italic.txt2tags
38
+ match: //([^\s](|.*?[^\s])/*)//
39
+ - name: string.quoted.other.raw.inline.txt2tags
40
+ match: "\"\"([^\\s](|.*?[^\\s])\"*)\"\""
41
+ - name: string.quoted.other.raw.line.txt2tags
42
+ match: ^""" (?=.).*$\n?
43
+ - name: string.quoted.other.raw.block.txt2tags
44
+ begin: ^"""\s*$
45
+ end: ^"""\s*$\n?
46
+ - name: markup.list.numbered.txt2tags
47
+ match: ^ *\+ (?=[^ ])
48
+ - name: markup.list.unnumbered.txt2tags
49
+ match: ^ *- (?=[^ ])
50
+ - name: markup.list.unnumbered.txt2tags
51
+ match: "^ *: (?=.)"
52
+ - name: markup.list.txt2tags
53
+ match: ^( *)([-+:])\s*$
54
+ - name: markup.raw.verb.block.txt2tags
55
+ begin: ^```\s*$
56
+ end: ^```\s*$\n?
57
+ - name: markup.raw.verb.line.txt2tags
58
+ match: ^``` (?=.).*$\n?
59
+ - name: markup.raw.verb.inline.txt2tags
60
+ match: "``([^\\s](|.*?[^\\s])`*)``"
61
+ - name: invalid.deprecated.trailing-whitespace.txt2tags
62
+ match: \s+$
63
+ - name: string.interpolated.txt2tags
64
+ match: (?i)%%(date|mtime|infile|outfile)(\(.*?\))?|%%toc
65
+ - name: constant.character.txt2tags
66
+ match: (?i)^%!\s*(target|encoding|style|options|include|includeconf|preproc|postproc|guicolors)\s*(\(\w*\))?\s*:.*
67
+ - name: meta.tag.image.txt2tags
68
+ match: \[[\w_,.+%$#@!?+~/-]+\.(png|jpe?g|gif|eps|bmp)\]
69
+ - name: meta.tag.email.txt2tags
70
+ match: (?i)\b[A-Za-z0-9_.-]+@([A-Za-z0-9_-]+\.)+[A-Za-z]{2,4}\b(\?[A-Za-z0-9/%&=+;.,$@*_-]+)?
71
+ - name: meta.tag.url.txt2tags
72
+ match: (?i)\b((https?|ftp|news|telnet|gopher|wais)://([A-Za-z0-9_.-]+(:[^ @]*)?@)?|(www[23]?|ftp)\.)[A-Za-z0-9%._/~:,=$@&+-]+\b/*(\?[A-Za-z0-9/%&=+;.,$@*_-]+)?(#[A-Za-z0-9%._-]*)?
73
+ - name: meta.tag.link.txt2tags
74
+ match: (?i)\[(\[[\w_,.+%$#@!?+~/-]+\.(png|jpe?g|gif|eps|bmp)\]|[^]]+) (((https?|ftp|news|telnet|gopher|wais)://([A-Za-z0-9_.-]+(:[^ @]*)?@)?|(www[23]?|ftp)\.)[A-Za-z0-9%._/~:,=$@&+-]+\b/*(\?[A-Za-z0-9/%&=+;.,$@*_-]+)?(#[A-Za-z0-9%._-]*)?|[A-Za-z0-9_.-]+@([A-Za-z0-9_-]+\.)+[A-Za-z]{2,4}\b(\?[A-Za-z0-9/%&=+;.,$@*_-]+)?|[A-Za-z0-9%._/~:,=$@&+-]+|[A-Za-z0-9%._/~:,=$@&+-]*(#[A-Za-z0-9%._-]*))\]
75
+ - name: markup.quote.txt2tags
76
+ match: ^\t.*$\n?
77
+ - name: comment.line.txt2tags
78
+ match: ^%.*$\n?
79
+ keyEquivalent: ^~T
@@ -0,0 +1,77 @@
1
+ ---
2
+ name: Installer Distribution Script
3
+ fileTypes:
4
+ - dist
5
+ scopeName: text.xml.apple-dist
6
+ uuid: 25D29CD3-07B7-44C6-A96A-46CF771130EB
7
+ foldingStartMarker: ^\s*(<[^!?%/](?!.+?(/>|</.+?>))|<[!%]--(?!.+?--%?>)|<%[!]?(?!.+?%>))
8
+ patterns:
9
+ - name: source.js.embedded.apple-dist
10
+ captures:
11
+ "1":
12
+ name: meta.tag.xml
13
+ "2":
14
+ name: punctuation.definition.tag.xml
15
+ "3":
16
+ name: entity.name.tag.xml
17
+ "4":
18
+ name: punctuation.definition.tag.xml
19
+ begin: ((<)(script)(>))
20
+ end: ((</)(script)(>))
21
+ patterns:
22
+ - name: support.class.apple-dist
23
+ begin: \bsystem\b
24
+ end: (?=(\(|\s))|$
25
+ patterns:
26
+ - name: support.function.apple-dist
27
+ match: \b(compareVersions|defaults|gestalt|localizedString(WithFormat)?|localizedStandardString(WithFormat)?|log|propertiesOf|run(Once)?|sysctl|users\.desktopSessionsCount|version)\b
28
+ - name: support.function.apple-dist
29
+ begin: \b(applications)\b
30
+ end: (?=(\(|\s))|$
31
+ patterns:
32
+ - name: support.variable.apple-dist
33
+ match: \b(fromPID|fromIdentifier|all)\b
34
+ - name: support.function.apple-dist
35
+ begin: \b(files)\b
36
+ end: (?=(\(|\s))|$
37
+ patterns:
38
+ - name: support.variable.apple-dist
39
+ match: \b(fileExistsAtPath|plistAtPath|bundleAtPath)\b
40
+ - name: support.function.apple-dist
41
+ begin: \b(ioregistry)\b
42
+ end: (?=(\(|\s))|$
43
+ patterns:
44
+ - name: support.variable.apple-dist
45
+ match: \b(fromPath|matching(Class|Name)|(children|parents)Of)\b
46
+ - name: support.class.apple-dist
47
+ begin: \b(choices)\b
48
+ end: (?=(\(|\s))|$
49
+ patterns:
50
+ - name: support.variable.apple-dist
51
+ match: \b(.*)\.(bundle|customLocation(AllowAlternateVolumes)?|description(-mime-type)?|(start_)?enabled|id|(start_)?selected|tooltip|(start_)?visible|title|packages|packageUpgradeAction)\b
52
+ - name: support.class.apple-dist
53
+ begin: \bmy\b
54
+ end: (?=(\(|\s))|$
55
+ patterns:
56
+ - name: support.function.apple-dist
57
+ begin: \b(choice)\b
58
+ end: (?=(\(|\s))|$
59
+ patterns:
60
+ - name: support.variable.apple-dist
61
+ match: \b(bundle|customLocation(AllowAlternateVolumes)?|description(-mime-type)?|(start_)?enabled|id|(start_)?selected|tooltip|(start_)?visible|title|packages|packageUpgradeAction)\b
62
+ - name: support.function.apple-dist
63
+ begin: \b(result)\b
64
+ end: (?=(\(|\s))|$
65
+ patterns:
66
+ - name: support.variable.apple-dist
67
+ match: \b(type|title|message)\b
68
+ - name: support.function.apple-dist
69
+ begin: \b(target)\b
70
+ end: (?=(\(|\s))|$
71
+ patterns:
72
+ - name: support.variable.apple-dist
73
+ match: \b(mountpoint|availableKilobytes|systemVersion|receiptForIdentifier)\b
74
+ - include: source.js
75
+ - include: text.xml
76
+ foldingStopMarker: ^\s*(</[^>]+>|[/%]>|-->)\s*$
77
+ keyEquivalent: ^~I
@@ -0,0 +1,92 @@
1
+ ---
2
+ name: XML strict
3
+ fileTypes: []
4
+
5
+ scopeName: text.xml.strict
6
+ uuid: 74AEC234-DD4D-4AB1-B855-253E34E34BFE
7
+ foldingStartMarker: ^\s*(<[^!?%/](?!.+?(/>|</.+?>))|<[!%]--(?!.+?--%?>)|<%[!]?(?!.+?%>))
8
+ patterns:
9
+ - name: meta.tag.processing-instruction.xml
10
+ captures:
11
+ "0":
12
+ name: punctuation.definition.tag.xml
13
+ begin: <\?
14
+ end: ">"
15
+ - name: meta.tag.sgml.xml
16
+ captures:
17
+ "0":
18
+ name: punctuation.definition.tag.xml
19
+ begin: <!
20
+ end: ">"
21
+ - name: meta.tag.xml
22
+ endCaptures:
23
+ "6":
24
+ name: entity.name.tag.localname.xml
25
+ "7":
26
+ name: punctuation.definition.tag.xml
27
+ "8":
28
+ name: invalid.illegal.unexpected-end-tag.xml
29
+ "1":
30
+ name: punctuation.definition.tag.xml
31
+ "2":
32
+ name: punctuation.definition.tag.xml
33
+ "3":
34
+ name: entity.name.tag.namespace.xml
35
+ "4":
36
+ name: entity.name.tag.xml
37
+ "5":
38
+ name: punctuation.separator.namespace.xml
39
+ begin: (<)(?:([-_[:alnum:]]+)((:)))?([-_.:[:alnum:]]+)
40
+ beginCaptures:
41
+ "6":
42
+ name: invalid.illegal.unexpected-end-tag.xml
43
+ "1":
44
+ name: punctuation.definition.tag.xml
45
+ "2":
46
+ name: entity.name.tag.namespace.xml
47
+ "3":
48
+ name: entity.name.tag.xml
49
+ "4":
50
+ name: punctuation.separator.namespace.xml
51
+ "5":
52
+ name: entity.name.tag.localname.xml
53
+ end: (/>)|(</)(\2)((\4))(\5)(>)|(</[-_.:[:alnum:]]+>)
54
+ patterns:
55
+ - captures:
56
+ "1":
57
+ name: entity.other.attribute-name.namespace.xml
58
+ "2":
59
+ name: entity.other.attribute-name.xml
60
+ "3":
61
+ name: punctuation.separator.namespace.xml
62
+ "4":
63
+ name: entity.other.attribute-name.localname.xml
64
+ match: \s+(?:([-_a-zA-Z0-9]+)((:)))?([a-zA-Z-]+)=
65
+ - name: string.quoted.double.xml
66
+ endCaptures:
67
+ "0":
68
+ name: punctuation.definition.string.end.xml
69
+ begin: "\""
70
+ beginCaptures:
71
+ "0":
72
+ name: punctuation.definition.string.begin.xml
73
+ end: "\""
74
+ - name: string.quoted.single.xml
75
+ endCaptures:
76
+ "0":
77
+ name: punctuation.definition.string.end.xml
78
+ begin: "'"
79
+ beginCaptures:
80
+ "0":
81
+ name: punctuation.definition.string.begin.xml
82
+ end: "'"
83
+ - name: meta.tag-content.xml
84
+ begin: ">"
85
+ beginCaptures:
86
+ "0":
87
+ name: punctuation.definition.tag.xml
88
+ end: (?=</)
89
+ patterns:
90
+ - include: $self
91
+ foldingStopMarker: ^\s*(</[^>]+>|[/%]>|-->)\s*$
92
+ keyEquivalent: ^~X
@@ -0,0 +1,180 @@
1
+ ---
2
+ name: XML
3
+ fileTypes:
4
+ - xml
5
+ - tld
6
+ - jsp
7
+ - pt
8
+ - cpt
9
+ - dtml
10
+ - rss
11
+ - opml
12
+ scopeName: text.xml
13
+ repository:
14
+ tagStuff:
15
+ patterns:
16
+ - captures:
17
+ "1":
18
+ name: entity.other.attribute-name.namespace.xml
19
+ "2":
20
+ name: entity.other.attribute-name.xml
21
+ "3":
22
+ name: punctuation.separator.namespace.xml
23
+ "4":
24
+ name: entity.other.attribute-name.localname.xml
25
+ match: " (?:([-_a-zA-Z0-9]+)((:)))?([_a-zA-Z-]+)="
26
+ - include: "#doublequotedString"
27
+ - include: "#singlequotedString"
28
+ singlequotedString:
29
+ name: string.quoted.single.xml
30
+ endCaptures:
31
+ "0":
32
+ name: punctuation.definition.string.end.xml
33
+ begin: "'"
34
+ beginCaptures:
35
+ "0":
36
+ name: punctuation.definition.string.begin.xml
37
+ end: "'"
38
+ doublequotedString:
39
+ name: string.quoted.double.xml
40
+ endCaptures:
41
+ "0":
42
+ name: punctuation.definition.string.end.xml
43
+ begin: "\""
44
+ beginCaptures:
45
+ "0":
46
+ name: punctuation.definition.string.begin.xml
47
+ end: "\""
48
+ uuid: D3C4E6DA-6B1C-11D9-8CC2-000D93589AF6
49
+ foldingStartMarker: ^\s*(<[^!?%/](?!.+?(/>|</.+?>))|<[!%]--(?!.+?--%?>)|<%[!]?(?!.+?%>))
50
+ patterns:
51
+ - name: meta.tag.preprocessor.xml
52
+ captures:
53
+ "1":
54
+ name: punctuation.definition.tag.xml
55
+ "2":
56
+ name: entity.name.tag.xml
57
+ begin: (<\?)\s*([-_a-zA-Z0-9]+)
58
+ end: (\?>)
59
+ patterns:
60
+ - name: entity.other.attribute-name.xml
61
+ match: " ([a-zA-Z-]+)"
62
+ - include: "#doublequotedString"
63
+ - include: "#singlequotedString"
64
+ - name: meta.tag.sgml.doctype.xml
65
+ captures:
66
+ "1":
67
+ name: punctuation.definition.tag.xml
68
+ "2":
69
+ name: entity.name.tag.doctype.xml
70
+ begin: (<!)(DOCTYPE)
71
+ end: (>)
72
+ patterns:
73
+ - captures:
74
+ "1":
75
+ name: punctuation.definition.tag.xml
76
+ "2":
77
+ name: entity.name.tag.entity.xml
78
+ "3":
79
+ name: meta.entity.xml
80
+ begin: (<!)(ENTITY)\s([-_a-zA-Z0-9]+)
81
+ end: (>)
82
+ patterns:
83
+ - include: "#doublequotedString"
84
+ - include: "#singlequotedString"
85
+ - name: comment.block.xml
86
+ captures:
87
+ "0":
88
+ name: punctuation.definition.comment.xml
89
+ begin: <[!%]--
90
+ end: --%?>
91
+ - name: meta.tag.no-content.xml
92
+ endCaptures:
93
+ "6":
94
+ name: entity.name.tag.localname.xml
95
+ "7":
96
+ name: punctuation.definition.tag.xml
97
+ "1":
98
+ name: punctuation.definition.tag.xml
99
+ "2":
100
+ name: meta.scope.between-tag-pair.xml
101
+ "3":
102
+ name: entity.name.tag.namespace.xml
103
+ "4":
104
+ name: entity.name.tag.xml
105
+ "5":
106
+ name: punctuation.separator.namespace.xml
107
+ begin: (<)((?:([-_a-zA-Z0-9]+)((:)))?([-_a-zA-Z0-9:]+))(?=(\s[^>]*)?></\2>)
108
+ beginCaptures:
109
+ "6":
110
+ name: entity.name.tag.localname.xml
111
+ "1":
112
+ name: punctuation.definition.tag.xml
113
+ "3":
114
+ name: entity.name.tag.namespace.xml
115
+ "4":
116
+ name: entity.name.tag.xml
117
+ "5":
118
+ name: punctuation.separator.namespace.xml
119
+ end: (>(<))/(?:([-_a-zA-Z0-9]+)((:)))?([-_a-zA-Z0-9:]+)(>)
120
+ patterns:
121
+ - include: "#tagStuff"
122
+ - name: meta.tag.xml
123
+ captures:
124
+ "1":
125
+ name: punctuation.definition.tag.xml
126
+ "2":
127
+ name: entity.name.tag.namespace.xml
128
+ "3":
129
+ name: entity.name.tag.xml
130
+ "4":
131
+ name: punctuation.separator.namespace.xml
132
+ "5":
133
+ name: entity.name.tag.localname.xml
134
+ begin: (</?)(?:([-_a-zA-Z0-9]+)((:)))?([-_a-zA-Z0-9:]+)
135
+ end: (/?>)
136
+ patterns:
137
+ - include: "#tagStuff"
138
+ - name: constant.character.entity.xml
139
+ captures:
140
+ "1":
141
+ name: punctuation.definition.constant.xml
142
+ "3":
143
+ name: punctuation.definition.constant.xml
144
+ match: (&)([a-zA-Z0-9_-]+|#[0-9]+|#x[0-9a-fA-F]+)(;)
145
+ - name: invalid.illegal.bad-ampersand.xml
146
+ match: "&"
147
+ - name: source.java-props.embedded.xml
148
+ endCaptures:
149
+ "0":
150
+ name: punctuation.section.embedded.end.xml
151
+ begin: <%@
152
+ beginCaptures:
153
+ "0":
154
+ name: punctuation.section.embedded.begin.xml
155
+ end: "%>"
156
+ patterns:
157
+ - name: keyword.other.page-props.xml
158
+ match: page|include|taglib
159
+ - name: source.java.embedded.xml
160
+ endCaptures:
161
+ "0":
162
+ name: punctuation.section.embedded.end.xml
163
+ begin: <%[!=]?(?!--)
164
+ beginCaptures:
165
+ "0":
166
+ name: punctuation.section.embedded.begin.xml
167
+ end: (?!--)%>
168
+ patterns:
169
+ - include: source.java
170
+ - name: string.unquoted.cdata.xml
171
+ endCaptures:
172
+ "0":
173
+ name: punctuation.definition.string.end.xml
174
+ begin: <!\[CDATA\[
175
+ beginCaptures:
176
+ "0":
177
+ name: punctuation.definition.string.begin.xml
178
+ end: "]]>"
179
+ foldingStopMarker: ^\s*(</[^>]+>|[/%]>|-->)\s*$
180
+ keyEquivalent: ^~X