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,114 @@
1
+ ---
2
+ name: Postscript
3
+ fileTypes:
4
+ - ps
5
+ - eps
6
+ firstLineMatch: ^%!PS
7
+ scopeName: source.postscript
8
+ repository:
9
+ string_content:
10
+ patterns:
11
+ - name: constant.numeric.octal.postscript
12
+ match: \\[0-7]{1,3}
13
+ - name: constant.character.escape.postscript
14
+ match: \\(\\|[nrtbf\(\)]|[0-7]{1,3}|\r?\n)
15
+ - name: invalid.illegal.unknown-escape.postscript.ignored
16
+ match: \\
17
+ - begin: \(
18
+ end: \)
19
+ patterns:
20
+ - include: "#string_content"
21
+ uuid: B89483CD-6AE0-4517-BE2C-82F8083B7359
22
+ foldingStartMarker: /\*\*|\{\s*$
23
+ patterns:
24
+ - name: string.other.postscript
25
+ endCaptures:
26
+ "0":
27
+ name: punctuation.definition.string.end.postscript
28
+ begin: \(
29
+ beginCaptures:
30
+ "0":
31
+ name: punctuation.definition.string.begin.postscript
32
+ end: \)
33
+ patterns:
34
+ - include: "#string_content"
35
+ - name: meta.Document-Structuring-Comment.postscript
36
+ captures:
37
+ "1":
38
+ name: keyword.other.DSC.postscript
39
+ "3":
40
+ name: string.unquoted.DSC.postscript
41
+ match: ^(%%(BeginBinary:|BeginCustomColor:|BeginData:|BeginDefaults|BeginDocument:|BeginEmulation:|BeginExitServer:|BeginFeature:|BeginFile:|BeginFont:|BeginObject:|BeginPageSetup:|BeginPaperSize:|BeginPreview:|BeginProcSet|BeginProcessColor:|BeginProlog|BeginResource:|BeginSetup|BoundingBox:|CMYKCustomColor:|ChangeFont:|Copyright:|CreationDate:|Creator:|DocumentCustomColors:|DocumentData:|DocumentFonts:|DocumentMedia:|DocumentNeededFiles:|DocumentNeededFonts:|DocumentNeededProcSets:|DocumentNeededResources:|DocumentPaperColors:|DocumentPaperForms:|DocumentPaperSizes:|DocumentPaperWeights:|DocumentPrinterRequired:|DocumentProcSets:|DocumentProcessColors:|DocumentSuppliedFiles:|DocumentSuppliedFonts:|DocumentSuppliedProcSets:|DocumentSuppliedResources:|EOF|Emulation:|EndBinary:|EndComments|EndCustomColor:|EndData:|EndDefaults|EndDocument:|EndEmulation:|EndExitServer:|EndFeature:|EndFile:|EndFont:|EndObject:|EndPageSetup:|EndPaperSize:|EndPreview:|EndProcSet|EndProcessColor:|EndProlog|EndResource:|EndSetup|ExecuteFile:|Extensions:|Feature:|For:|IncludeDocument:|IncludeFeature:|IncludeFile:|IncludeFont:|IncludeProcSet:|IncludeResource:|LanguageLevel:|OperatorIntervention:|OperatorMessage:|Orientation:|Page:|PageBoundingBox:|PageCustomColors|PageCustomColors:|PageFiles:|PageFonts:|PageMedia:|PageOrder:|PageOrientation:|PageProcessColors|PageProcessColors:|PageRequirements:|PageResources:|PageTrailer|Pages:|PaperColor:|PaperForm:|PaperSize:|PaperWeight:|ProofMode:|RGBCustomColor:|Requirements:|Routing:|Title:|Trailer|VMlocation:|VMusage:|Version|Version:|\+|\?BeginFeatureQuery:|\?BeginFileQuery:|\?BeginFontListQuery:|\?BeginFontQuery:|\?BeginPrinterQuery:|\?BeginProcSetQuery:|\?BeginQuery:|\?BeginResourceListQuery:|\?BeginResourceQuery:|\?BeginVMStatus:|\?EndFeatureQuery:|\?EndFileQuery:|\?EndFontListQuery:|\?EndFontQuery:|\?EndPrinterQuery:|\?EndProcSetQuery:|\?EndQuery:|\?EndResourceListQuery:|\?EndResourceQuery:|\?EndVMStatus:))\s*(.*)$\n?
42
+ - name: comment.line.percentage.postscript
43
+ captures:
44
+ "1":
45
+ name: punctuation.definition.comment.postscript
46
+ match: (%).*$\n?
47
+ - name: meta.dictionary.postscript
48
+ captures:
49
+ "0":
50
+ name: punctuation.definition.dictionary.postscript
51
+ begin: \<\<
52
+ end: \>\>
53
+ patterns:
54
+ - include: $self
55
+ - name: meta.array.postscript
56
+ captures:
57
+ "0":
58
+ name: punctuation.definition.array.postscript
59
+ begin: \[
60
+ end: \]
61
+ patterns:
62
+ - include: $self
63
+ - name: meta.procedure.postscript
64
+ captures:
65
+ "0":
66
+ name: punctuation.definition.procedure.postscript
67
+ begin: "{"
68
+ end: "}"
69
+ patterns:
70
+ - include: $self
71
+ - name: string.other.base85.postscript
72
+ endCaptures:
73
+ "0":
74
+ name: punctuation.definition.string.end.postscript
75
+ begin: \<\~
76
+ beginCaptures:
77
+ "0":
78
+ name: punctuation.definition.string.begin.postscript
79
+ end: \~\>
80
+ patterns:
81
+ - match: "[!-z\\s]+"
82
+ - name: invalid.illegal.base85.char.postscript
83
+ match: .
84
+ - name: string.other.hexadecimal.postscript
85
+ endCaptures:
86
+ "0":
87
+ name: punctuation.definition.string.end.postscript
88
+ begin: \<
89
+ beginCaptures:
90
+ "0":
91
+ name: punctuation.definition.string.begin.postscript
92
+ end: \>
93
+ patterns:
94
+ - match: "[0-9A-Fa-f\\s]+"
95
+ - name: invalid.illegal.hexadecimal.char.postscript
96
+ match: .
97
+ - name: constant.numeric.radix.postscript
98
+ match: "[0-3]?[0-9]#[0-9a-zA-Z]+"
99
+ comment: well, not really, but short of listing rules for all bases from 2-36 best we can do
100
+ - name: constant.numeric.postscript
101
+ match: (\-|\+)?\d+(\.\d*)?([eE](\-|\+)?\d+)?
102
+ - name: constant.numeric.postscript
103
+ match: (\-|\+)?\.\d+([eE](\-|\+)?\d+)?
104
+ - name: keyword.operator.postscript
105
+ match: \b(abs|add|aload|anchorsearch|and|arc|arcn|arct|arcto|array|ashow|astore|atan|awidthshow|begin|bind|bitshift|bytesavailable|cachestatus|ceiling|charpath|clear|cleartomark|cleardictstack|clip|clippath|closefile|closepath|colorimage|concat|concatmatrix|condition|configurationerror|copy|copypage|cos|count|countdictstack|countexecstack|counttomark|cshow|currentblackgeneration|currentcacheparams|currentcmykcolor|currentcolor|currentcolorrendering|currentcolorscreen|currentcolorspace|currentcolortransfer|currentcontext|currentdash|currentdevparams|currentdict|currentfile|currentflat|currentfont|currentglobal|currentgray|currentgstate|currenthalftone|currenthalftonephase|currenthsbcolor|currentlinecap|currentlinejoin|currentlinewidth|currentmatrix|currentmiterlimit|currentobjectformat|currentpacking|currentpagedevice|currentpoint|currentrgbcolor|currentscreen|currentshared|currentstrokeadjust|currentsystemparams|currenttransfer|currentundercolorremoval|currentuserparams|curveto|cvi|cvlit|cvn|cvr|cvrs|cvs|cvx|def|defaultmatrix|definefont|defineresource|defineusername|defineuserobject|deletefile|detach|deviceinfo|dict|dictfull|dictstack|dictstackoverflow|dictstackunderflow|div|dtransform|dup|echo|eexec|end|eoclip|eofill|eoviewclip|eq|erasepage|errordict|exch|exec|execform|execstack|execstackoverflow|execuserobject|executeonly|executive|exit|exp|false|file|filenameforall|fileposition|fill|filter|findencoding|findfont|findresource|flattenpath|floor|flush|flushfile|FontDirectory|for|forall|fork|ge|get|getinterval|globaldict|GlobalFontDirectory|glyphshow|grestore|grestoreall|gsave|gstate|gt|handleerror|identmatrix|idiv|idtransform|if|ifelse|image|imagemask|index|ineofill|infill|initclip|initgraphics|initmatrix|initviewclip|instroke|internaldict|interrupt|inueofill|inufill|inustroke|invalidaccess|invalidcontext|invalidexit|invalidfileaccess|invalidfont|invalidid|invalidrestore|invertmatrix|ioerror|ISOLatin1Encoding|itransform|join|kshow|known|languagelevel|le|length|limitcheck|lineto|ln|load|lock|log|loop|lt|makefont|makepattern|mark|matrix|maxlength|mod|monitor|moveto|mul|ne|neg|newpath|noaccess|nocurrentpoint|not|notify|null|nulldevice|or|packedarray|pathbbox|pathforall|pop|print|printobject|product|prompt|pstack|put|putinterval|quit|rand|rangecheck|rcurveto|read|readhexstring|readline|readonly|readstring|realtime|rectclip|rectfill|rectstroke|rectviewclip|renamefile|repeat|resetfile|resourceforall|resourcestatus|restore|reversepath|revision|rlineto|rmoveto|roll|rootfont|rotate|round|rrand|run|save|scale|scalefont|scheck|search|selectfont|serialnumber|setbbox|setblackgeneration|setcachedevice|setcachedevice2|setcachelimit|setcacheparams|setcharwidth|setcmykcolor|setcolor|setcolorrendering|setcolorscreen|setcolorspace|setcolortransfer|setdash|setdevparams|setfileposition|setflat|setfont|setglobal|setgray|setgstate|sethalftone|sethalftonephase|sethsbcolor|setlinecap|setlinejoin|setlinewidth|setmatrix|setmiterlimit|setobjectformat|setoverprint|setpacking|setpagedevice|setpattern|setrgbcolor|setscreen|setshared|setstrokeadjust|setsystemparams|settransfer|setucacheparams|setundercolorremoval|setuserparams|setvmthreshold|shareddict|show|showpage|sin|sqrt|srand|stack|stackoverflow|stackunderflow|StandardEncoding|start|startjob|status|statusdict|stop|stopped|store|string|stringwidth|stroke|strokepath|sub|syntaxerror|systemdict|timeout|transform|translate|true|truncate|type|typecheck|token|uappend|ucache|ucachestatus|ueofill|ufill|undef|undefined|undefinedfilename|undefineresource|undefinedresult|undefinefont|undefineresource|undefinedresource|undefineuserobject|unmatchedmark|unregistered|upath|userdict|UserObjects|usertime|ustroke|ustrokepath|version|viewclip|viewclippath|VMerror|vmreclaim|vmstatus|wait|wcheck|where|widthshow|write|writehexstring|writeobject|writestring|wtranslation|xcheck|xor|xshow|xyshow|yield|yshow)\b
106
+ - name: variable.other.immediately-evaluated.postscript
107
+ match: //[^\(\)\<\>\[\]\{\}\/\%\s]+
108
+ - name: variable.other.literal.postscript
109
+ match: /[^\(\)\<\>\[\]\{\}\/\%\s]+
110
+ - name: variable.other.name.postscript
111
+ match: "[^\\(\\)\\<\\>\\[\\]\\{\\}\\/\\%\\s]+"
112
+ comment: stuff like 22@ff will show as number 22 followed by name @ff, but should be name 22@ff!
113
+ foldingStopMarker: \*\*/|^\s*\}
114
+ keyEquivalent: ^~P
@@ -0,0 +1,106 @@
1
+ ---
2
+ name: Processing
3
+ fileTypes:
4
+ - pde
5
+ scopeName: source.processing
6
+ uuid: EF0D256C-2FCB-4A87-9250-0F5F82A366B9
7
+ foldingStartMarker: (/\*\*|\{\s*$)
8
+ patterns:
9
+ - name: support.function.processing
10
+ match: \b(abs|acos|alpha|alpha|ambient|ambientLight|append|applyMatrix|arc|asin|atan2|atan|background|beginCamera|beginShape|bezier|bezierDetail|bezierPoint|bezierTangent|bezierVertex|binary|blend|blend|blue|boolean|box|brightness|byte|cache|camera|ceil|char|charAt|color|colorMode|concat|constrain|contract|copy|copy|cos|createFont|cursor|curve|curveDetail|curvePoint|curveSegments|curveTightness|curveVertex|day|degrees|delay|directionalLight|dist|duration|ellipse|ellipseMode|emissive|endCamera|endShape|equals|exp|expand|fill|filter|filter|float|floor|framerate|frustum|get|get|green|hex|hint|hour|hue|image|imageMode|indexOf|int|join|keyPressed|keyReleased|length|lerp|lightFalloff|lightSpecular|lights|line|link|list|loadBytes|loadFont|loadImage|loadPixels|loadSound|loadStrings|log|lookat|loop|loop|mag|mask|max|millis|min|minute|modelX|modelY|modelZ|month|mouseDragged|mouseMoved|mousePressed|mouseReleased|nf|nfc|nfp|nfs|noCursor|noFill|noLoop|noLoop|noSmooth|noStroke|noTint|noise|noiseDetail|noiseSeed|normal|open|openStream|ortho|param|pause|perspective|play|point|pointLight|popMatrix|pow|print|printCamera|printMatrix|printProjection|println|pushMatrix|quad|radians|random|randomSeed|rect|rectMode|red|redraw|resetMatrix|reverse|rotate|rotateX|rotateY|rotateZ|round|saturation|save|saveBytes|saveFrame|saveStrings|scale|screenX|screenY|screenZ|second|set|set|shininess|shorten|sin|size|smooth|sort|specular|sphere|sphereDetail|splice|split|spotLight|sq|sqrt|status|stop|str|stroke|strokeCap|strokeJoin|strokeWeight|subset|substring|switch|tan|text|textAlign|textAscent|textDescent|textFont|textLeading|textMode|textSize|textWidth|texture|textureMode|time|tint|toLowerCase|toUpperCase|translate|triangle|trim|unHint|unbinary|unhex|updatePixels|vertex|volume|year|draw|setup)\b
11
+ - name: comment.block.empty.processing
12
+ captures:
13
+ "0":
14
+ name: punctuation.definition.comment.processing
15
+ match: /\*\*/
16
+ - name: comment.block.processing
17
+ captures:
18
+ "0":
19
+ name: punctuation.definition.comment.processing
20
+ begin: /\*
21
+ end: \*/
22
+ - name: comment.block.documentation.processing
23
+ captures:
24
+ "0":
25
+ name: punctuation.definition.comment.processing
26
+ begin: /\*\*
27
+ end: \*/
28
+ patterns:
29
+ - captures:
30
+ "1":
31
+ name: keyword.other.documentation.params.processing
32
+ "2":
33
+ name: keyword.other.documentation.value.processing
34
+ match: \*\s*@(param)\s*([a-z][a-zA-Z0-9_]+)\s*
35
+ - captures:
36
+ "1":
37
+ name: keyword.other.embedded-docs.params.processing
38
+ match: \*\s*@([a-zA-Z0-9_-]+)\s*
39
+ - name: comment.line.double-slash.processing
40
+ captures:
41
+ "1":
42
+ name: punctuation.definition.comment.processing
43
+ match: (//).*$\n?
44
+ - name: storage.type.processing
45
+ match: \b(class|interface|void|color|string|byte|short|char|int|long|float|double|boolean|[A-Z][A-Za-z0-9]+)\b
46
+ - name: storage.modifier.access-control.processing
47
+ match: \b(private|protected|public)\b
48
+ - name: storage.modifier.processing
49
+ match: \b(abstract|final|native|static|transient|synchronized|volatile|strictfp|extends|implements)\b
50
+ - name: keyword.control.catch-exception.processing
51
+ match: \b(try|catch|finally|throw)\b
52
+ - name: keyword.control.processing
53
+ match: \b(return|break|case|continue|default|do|while|for|switch|if|else)\b
54
+ - name: keyword.other.class-fns.processing
55
+ match: \b(import|new|package|throws)\b
56
+ - name: keyword.operator.processing
57
+ match: \b(instanceof)\b
58
+ - name: constant.language.processing
59
+ match: \b(false|null|true)\b
60
+ - name: constant.other.processing
61
+ match: \b(focused|frameCount|framerate|height|height|key|keyCode|keyPressed|mouseButton|mousePressed|mouseX|mouseY|online|pixels|pmouseX|pmouseY|screen|width)\b
62
+ - name: support.constant.processing
63
+ match: \b(ADD|ALIGN_CENTER|ALIGN_LEFT|ALIGN_RIGHT|ALPHA|ALPHA_MASK|ALT|AMBIENT|ARGB|ARROW|BACKSPACE|BEVEL|BLEND|BLEND|BLUE_MASK|BLUR|CENTER|CENTER_RADIUS|CHATTER|CODED|COMPLAINT|COMPONENT|COMPOSITE|CONCAVE_POLYGON|CONTROL|CONVEX_POLYGON|CORNER|CORNERS|CROSS|CUSTOM|DARKEST|DEGREES|DEG_TO_RAD|DELETE|DIFFERENCE|DIFFUSE|DISABLED|DISABLE_TEXT_SMOOTH|DOWN|ENTER|EPSILON|ESC|GIF|GREEN_MASK|GREY|HALF|HALF_PI|HALF_PI|HAND|HARD_LIGHT|HSB|IMAGE|INVERT|JAVA2D|JPEG|LEFT|LIGHTEST|LINES|LINE_LOOP|LINE_STRIP|MAX_FLOAT|MITER|MODEL|MOVE|MULTIPLY|NORMALIZED|NO_DEPTH_TEST|NTSC|ONE|OPAQUE|OPENGL|ORTHOGRAPHIC|OVERLAY|P2D|P3D|PAL|PERSPECTIVE|PI|PI|PIXEL_CENTER|POINTS|POLYGON|POSTERIZE|PROBLEM|PROJECT|QUADS|QUAD_STRIP|QUARTER_PI|RADIANS|RAD_TO_DEG|RED_MASK|REPLACE|RETURN|RGB|RIGHT|ROUND|SCREEN|SECAM|SHIFT|SOFT_LIGHT|SPECULAR|SQUARE|SUBTRACT|SVIDEO|TAB|TARGA|TEXT|TFF|THIRD_PI|THRESHOLD|TIFF|TRIANGLES|TRIANGLE_FAN|TRIANGLE_STRIP|TUNER|TWO|TWO_PI|TWO_PI|UP|WAIT|WHITESPACE)\b
64
+ - name: support.class.processing
65
+ match: \b(Array|Character|Integer|Math|Object|PFont|PImage|PSound|StringBuffer|Thread)\b
66
+ - name: variable.language.processing
67
+ match: \b(this|super)\b
68
+ - name: constant.numeric.processing
69
+ match: \b((0(x|X)[0-9a-fA-F]*)|(([0-9]+\.?[0-9]*)|(\.[0-9]+))((e|E)(\+|-)?[0-9]+)?)([LlFfUuDd]|UL|ul)?\b
70
+ - name: string.quoted.double.processing
71
+ endCaptures:
72
+ "0":
73
+ name: punctuation.definition.string.end.processing
74
+ begin: "\""
75
+ beginCaptures:
76
+ "0":
77
+ name: punctuation.definition.string.begin.processing
78
+ end: "\""
79
+ patterns:
80
+ - name: constant.character.escape.processing
81
+ match: \\.
82
+ - name: string.quoted.single.processing
83
+ endCaptures:
84
+ "0":
85
+ name: punctuation.definition.string.end.processing
86
+ begin: "'"
87
+ beginCaptures:
88
+ "0":
89
+ name: punctuation.definition.string.begin.processing
90
+ end: "'"
91
+ patterns:
92
+ - name: constant.character.escape.processing
93
+ match: \\.
94
+ - name: meta.class.processing
95
+ captures:
96
+ "1":
97
+ name: storage.type.class.processing
98
+ "2":
99
+ name: entity.name.type.class.processing
100
+ "3":
101
+ name: storage.modifier.extends.processing
102
+ "4":
103
+ name: entity.other.inherited-class.processing
104
+ match: \b(class)\s+([a-zA-Z_](?:\w|\.)*)(?:\s+(extends)\s+([a-zA-Z_](?:\w|\.)*))?
105
+ foldingStopMarker: (\*\*/|^\s*\})
106
+ keyEquivalent: ^~P
@@ -0,0 +1,40 @@
1
+ ---
2
+ name: Prolog
3
+ fileTypes: []
4
+
5
+ scopeName: source.prolog
6
+ uuid: C0E2ADB0-1706-4A28-8DB7-263BDC8B5C5C
7
+ foldingStartMarker: "%\\s*region \\w*"
8
+ patterns:
9
+ - name: string.quoted.single.prolog
10
+ endCaptures:
11
+ "0":
12
+ name: punctuation.definition.string.end.prolog
13
+ begin: "'"
14
+ beginCaptures:
15
+ "0":
16
+ name: punctuation.definition.string.begin.prolog
17
+ end: "'"
18
+ patterns:
19
+ - name: constant.character.escape.prolog
20
+ match: \\.
21
+ - name: constant.character.escape.quote.prolog
22
+ match: "''"
23
+ - name: comment.line.percent.prolog
24
+ captures:
25
+ "1":
26
+ name: punctuation.definition.comment.prolog
27
+ match: (%).*$\n?
28
+ - name: keyword.operator.definition.prolog
29
+ match: ":-"
30
+ - name: variable.other.prolog
31
+ match: \b[A-Z][a-zA-Z0-9_]*\b
32
+ - name: constant.other.symbol.prolog
33
+ match: \b[a-z][a-zA-Z0-9_]*\b
34
+ comment: "\n\
35
+ \t\t\tI changed this from entity to storage.type, but have no idea what it is -- Allan\n\
36
+ \t\t\tAnd I changed this to constant.other.symbol after glancing over the docs,\n\
37
+ \t\t\t might still be wrong. -- Infininight\n\
38
+ \t\t\t"
39
+ foldingStopMarker: "%\\s*end(\\s*region)?"
40
+ keyEquivalent: ^~P
@@ -0,0 +1,21 @@
1
+ ---
2
+ name: Python (Django)
3
+ fileTypes: []
4
+
5
+ scopeName: source.python.django
6
+ uuid: 5326D56C-6F76-4758-8DB7-D818527919AC
7
+ foldingStartMarker: ^\s*(def|class)\s+([.a-zA-Z0-9_ b]+)\s*(\((.*)\))?\s*:|\{\s*$|\(\s*$|\[\s*$
8
+ patterns:
9
+ - name: support.type.django.model
10
+ match: (meta|models)\.(ForeignKey|Admin|AutoField|BooleanField|CharField|CommaSeparatedIntegerField|DateField|DateTimeField|EmailField|FileField|FilePathField|FloatField|ImageField|IntegerField|IPAddressField|ManyToManyField|NullBooleanField|OneToOneField|PhoneNumberField|PositiveIntegerField|PositiveSmallIntegerField|SlugField|SmallIntegerField|TextField|TimeField|URLField|USStateField|XMLField)
11
+ - name: support.other.django.module
12
+ match: "django(\\.[a-z]+){1,} "
13
+ - name: variable.other.django.settings
14
+ match: (ABSOLUTE_URL_OVERRIDES|ADMIN_FOR|ADMIN_MEDIA_PREFIX|ADMINS|ALLOWED_INCLUDE_ROOTS|APPEND_SLASH|CACHE_BACKEND|CACHE_MIDDLEWARE_KEY_PREFIX|CACHE_MIDDLEWARE_SECONDS|DATABASE_ENGINE|DATABASE_HOST|DATABASE_NAME|DATABASE_PASSWORD|DATABASE_PORT|DATABASE_USER|DATE_FORMAT|DATETIME_FORMAT|DEBUG|DEFAULT_CHARSET|DEFAULT_CONTENT_TYPE|DEFAULT_FROM_EMAIL|DISALLOWED_USER_AGENTS|EMAIL_HOST|EMAIL_SUBJECT_PREFIX|IGNORABLE_404_ENDS|IGNORABLE_404_STARTS|INSTALLED_APPS|INTERNAL_IPS|JING_PATH|LANGUAGE_CODE|LANGUAGES|MANAGERS|MEDIA_ROOT|MEDIA_URL|MIDDLEWARE_CLASSES|PREPEND_WWW|ROOT_URLCONF|SECRET_KEY|SEND_BROKEN_LINK_EMAILS|SERVER_EMAIL|SESSION_COOKIE_AGE|SESSION_COOKIE_DOMAIN|SESSION_COOKIE_NAME|SESSION_SAVE_EVERY_REQUEST|SITE_ID|TEMPLATE_DEBUG|TEMPLATE_DIRS|TEMPLATE_FILE_EXTENSION|TEMPLATE_LOADERS|TIME_FORMAT|TIME_ZONE|USE_ETAGS)
15
+ - name: support.function.django.view
16
+ match: (get_list_or_404|get_object_or_404|load_and_render|loader|render_to_response)
17
+ - name: support.function.django.model
18
+ match: "[a-z_]+\\.get_(object|list|iterator|count|values|values_iterator|in_bulk)"
19
+ - include: source.python
20
+ foldingStopMarker: ^\s*$|^\s*\}|^\s*\]|^\s*\)
21
+ keyEquivalent: ^~P
@@ -0,0 +1,868 @@
1
+ ---
2
+ name: Python
3
+ fileTypes:
4
+ - py
5
+ - rpy
6
+ - cpy
7
+ - SConstruct
8
+ - Sconstruct
9
+ - sconstruct
10
+ - SConscript
11
+ firstLineMatch: ^#!/.*\bpython\b
12
+ scopeName: source.python
13
+ repository:
14
+ keyword_arguments:
15
+ endCaptures:
16
+ "1":
17
+ name: punctuation.separator.parameters.python
18
+ begin: \b([a-zA-Z_][a-zA-Z_0-9]*)\s*(=)(?!=)
19
+ beginCaptures:
20
+ "1":
21
+ name: variable.parameter.function.python
22
+ "2":
23
+ name: keyword.operator.assignment.python
24
+ end: \s*(?:(,)|(?=$\n?|[\)]))
25
+ patterns:
26
+ - include: $self
27
+ generic_names:
28
+ match: "[A-Za-z_][A-Za-z0-9_]*"
29
+ escaped_char:
30
+ captures:
31
+ "6":
32
+ name: constant.character.escape.single-quote.python
33
+ "11":
34
+ name: constant.character.escape.return.python
35
+ "7":
36
+ name: constant.character.escape.bell.python
37
+ "12":
38
+ name: constant.character.escape.tab.python
39
+ "8":
40
+ name: constant.character.escape.backspace.python
41
+ "13":
42
+ name: constant.character.escape.vertical-tab.python
43
+ "9":
44
+ name: constant.character.escape.formfeed.python
45
+ "1":
46
+ name: constant.character.escape.hex.python
47
+ "2":
48
+ name: constant.character.escape.octal.python
49
+ "3":
50
+ name: constant.character.escape.newline.python
51
+ "4":
52
+ name: constant.character.escape.backlash.python
53
+ "10":
54
+ name: constant.character.escape.linefeed.python
55
+ "5":
56
+ name: constant.character.escape.double-quote.python
57
+ match: (\\x[0-9A-F]{2})|(\\[0-7]{3})|(\\\n)|(\\\\)|(\\\")|(\\')|(\\a)|(\\b)|(\\f)|(\\n)|(\\r)|(\\t)|(\\v)
58
+ entity_name_class:
59
+ patterns:
60
+ - include: "#illegal_names"
61
+ - include: "#generic_names"
62
+ dotted_name:
63
+ begin: (?=[A-Za-z_][A-Za-z0-9_]*(?:\.[A-Za-z_][A-Za-z0-9_]*)*)
64
+ end: (?![A-Za-z0-9_\.])
65
+ patterns:
66
+ - begin: (\.)(?=[A-Za-z_][A-Za-z0-9_]*)
67
+ end: (?![A-Za-z0-9_])
68
+ patterns:
69
+ - include: "#magic_function_names"
70
+ - include: "#magic_variable_names"
71
+ - include: "#illegal_names"
72
+ - include: "#generic_names"
73
+ - begin: (?<!\.)(?=[A-Za-z_][A-Za-z0-9_]*)
74
+ end: (?![A-Za-z0-9_])
75
+ patterns:
76
+ - include: "#builtin_functions"
77
+ - include: "#builtin_types"
78
+ - include: "#builtin_exceptions"
79
+ - include: "#illegal_names"
80
+ - include: "#magic_function_names"
81
+ - include: "#magic_variable_names"
82
+ - include: "#language_variables"
83
+ - include: "#generic_names"
84
+ builtin_types:
85
+ name: support.type.python
86
+ match: |-
87
+ (?x)\b(
88
+ basestring|bool|buffer|classmethod|complex|dict|enumerate|file|
89
+ float|frozenset|int|list|long|object|open|property|reversed|set|
90
+ slice|staticmethod|str|super|tuple|type|unicode|xrange
91
+ )\b
92
+ builtin_exceptions:
93
+ name: support.type.exception.python
94
+ match: (?x)\b((Arithmetic|Assertion|Attribute|EOF|Environment|FloatingPoint|IO|Import|Indentation|Index|Key|Lookup|Memory|Name|OS|Overflow|NotImplemented|Reference|Runtime|Standard|Syntax|System|Tab|Type|UnboundLocal|Unicode(Translate|Encode|Decode)?|Value|ZeroDivision)Error|(Deprecation|Future|Overflow|PendingDeprecation|Runtime|Syntax|User)?Warning|KeyboardInterrupt|NotImplemented|StopIteration|SystemExit|(Base)?Exception)\b
95
+ magic_variable_names:
96
+ name: support.variable.magic.python
97
+ match: \b__(all|bases|class|debug|dict|doc|file|members|metaclass|methods|name|slots|weakref)__\b
98
+ comment: magic variables which a class/module may have.
99
+ magic_function_names:
100
+ name: support.function.magic.python
101
+ match: |-
102
+ (?x)\b(__(?:
103
+ abs|add|and|call|cmp|coerce|complex|contains|del|delattr|
104
+ delete|delitem|delslice|div|divmod|enter|eq|exit|float|
105
+ floordiv|ge|get|getattr|getattribute|getitem|getslice|gt|
106
+ hash|hex|iadd|iand|idiv|ifloordiv|ilshift|imod|imul|init|
107
+ int|invert|ior|ipow|irshift|isub|iter|itruediv|ixor|le|len|
108
+ long|lshift|lt|mod|mul|ne|neg|new|nonzero|oct|or|pos|pow|
109
+ radd|rand|rdiv|rdivmod|repr|rfloordiv|rlshift|rmod|rmul|ror|
110
+ rpow|rrshift|rshift|rsub|rtruediv|rxor|set|setattr|setitem|
111
+ setslice|str|sub|truediv|unicode|xor
112
+ )__)\b
113
+ comment: these methods have magic interpretation by python and are generally called indirectly through syntactic constructs
114
+ illegal_names:
115
+ name: invalid.illegal.name.python
116
+ match: \b(and|as|assert|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|not|or|pass|print|raise|return|try|while|with|yield)\b
117
+ builtin_functions:
118
+ name: support.function.builtin.python
119
+ match: |-
120
+ (?x)\b(
121
+ __import__|all|abs|any|apply|callable|chr|cmp|coerce|compile|delattr|dir|
122
+ divmod|eval|execfile|filter|getattr|globals|hasattr|hash|hex|id|
123
+ input|intern|isinstance|issubclass|iter|len|locals|map|max|min|oct|
124
+ ord|pow|range|raw_input|reduce|reload|repr|round|setattr|sorted|
125
+ sum|unichr|vars|zip
126
+ )\b
127
+ docstrings:
128
+ patterns:
129
+ - name: comment.block.python
130
+ begin: ^\s*(?=[uU]?[rR]?""")
131
+ end: (?<=""")
132
+ patterns:
133
+ - include: "#string_quoted_double"
134
+ - name: comment.block.python
135
+ begin: ^\s*(?=[uU]?[rR]?''')
136
+ end: (?<=''')
137
+ patterns:
138
+ - include: "#string_quoted_single"
139
+ entity_name_function:
140
+ patterns:
141
+ - include: "#magic_function_names"
142
+ - include: "#illegal_names"
143
+ - include: "#generic_names"
144
+ strings:
145
+ patterns:
146
+ - include: "#string_quoted_double"
147
+ - include: "#string_quoted_single"
148
+ string_quoted_single:
149
+ patterns:
150
+ - name: string.quoted.single.single-line.python
151
+ captures:
152
+ "1":
153
+ name: punctuation.definition.string.begin.python
154
+ "2":
155
+ name: punctuation.definition.string.end.python
156
+ "3":
157
+ name: meta.empty-string.single.python
158
+ match: (?<!')(')(('))(?!')
159
+ - name: string.quoted.single.block.unicode-raw.python
160
+ endCaptures:
161
+ "1":
162
+ name: punctuation.definition.string.end.python
163
+ "2":
164
+ name: meta.empty-string.single.python
165
+ begin: ((?i:ur))(''')
166
+ beginCaptures:
167
+ "1":
168
+ name: storage.type.string.python
169
+ "2":
170
+ name: punctuation.definition.string.begin.python
171
+ end: ((?<=''')(')''|''')
172
+ patterns:
173
+ - include: "#constant_placeholder"
174
+ - include: "#escaped_unicode_char"
175
+ - include: "#escaped_char"
176
+ - include: source.regexp.python
177
+ comment: single quoted unicode-raw string
178
+ - name: string.quoted.single.block.raw.python
179
+ endCaptures:
180
+ "1":
181
+ name: punctuation.definition.string.end.python
182
+ "2":
183
+ name: meta.empty-string.single.python
184
+ begin: ([rR])(''')
185
+ beginCaptures:
186
+ "1":
187
+ name: storage.type.string.python
188
+ "2":
189
+ name: punctuation.definition.string.begin.python
190
+ end: ((?<=''')(')''|''')
191
+ patterns:
192
+ - include: "#constant_placeholder"
193
+ - include: "#escaped_char"
194
+ - include: source.regexp.python
195
+ comment: single quoted raw string
196
+ - name: string.quoted.single.block.unicode.python
197
+ endCaptures:
198
+ "1":
199
+ name: punctuation.definition.string.end.python
200
+ "2":
201
+ name: meta.empty-string.single.python
202
+ begin: ([uU])(''')
203
+ beginCaptures:
204
+ "1":
205
+ name: storage.type.string.python
206
+ "2":
207
+ name: punctuation.definition.string.begin.python
208
+ end: ((?<=''')(')''|''')
209
+ patterns:
210
+ - include: "#constant_placeholder"
211
+ - include: "#escaped_unicode_char"
212
+ - include: "#escaped_char"
213
+ comment: single quoted unicode string
214
+ - name: string.quoted.single.single-line.unicode-raw.python
215
+ endCaptures:
216
+ "1":
217
+ name: punctuation.definition.string.end.python
218
+ "2":
219
+ name: invalid.illegal.unclosed-string.python
220
+ begin: ((?i:ur))(')
221
+ beginCaptures:
222
+ "1":
223
+ name: storage.type.string.python
224
+ "2":
225
+ name: punctuation.definition.string.begin.python
226
+ end: (')|(\n)
227
+ patterns:
228
+ - include: "#constant_placeholder"
229
+ - include: "#escaped_unicode_char"
230
+ - include: "#escaped_char"
231
+ - include: source.regexp.python
232
+ comment: single quoted raw string
233
+ - name: string.quoted.single.single-line.raw.python
234
+ endCaptures:
235
+ "1":
236
+ name: punctuation.definition.string.end.python
237
+ "2":
238
+ name: invalid.illegal.unclosed-string.python
239
+ begin: ([rR])(')
240
+ beginCaptures:
241
+ "1":
242
+ name: storage.type.string.python
243
+ "2":
244
+ name: punctuation.definition.string.begin.python
245
+ end: (')|(\n)
246
+ patterns:
247
+ - include: "#constant_placeholder"
248
+ - include: "#escaped_char"
249
+ - include: source.regexp.python
250
+ comment: single quoted raw string
251
+ - name: string.quoted.single.single-line.unicode.python
252
+ endCaptures:
253
+ "1":
254
+ name: punctuation.definition.string.end.python
255
+ "2":
256
+ name: invalid.illegal.unclosed-string.python
257
+ begin: ([uU])(')
258
+ beginCaptures:
259
+ "1":
260
+ name: storage.type.string.python
261
+ "2":
262
+ name: punctuation.definition.string.begin.python
263
+ end: (')|(\n)
264
+ patterns:
265
+ - include: "#constant_placeholder"
266
+ - include: "#escaped_unicode_char"
267
+ - include: "#escaped_char"
268
+ comment: single quoted unicode string
269
+ - name: string.quoted.single.block.python
270
+ endCaptures:
271
+ "1":
272
+ name: punctuation.definition.string.end.python
273
+ "2":
274
+ name: meta.empty-string.single.python
275
+ begin: (''')
276
+ beginCaptures:
277
+ "1":
278
+ name: punctuation.definition.string.begin.python
279
+ end: ((?<=''')(')''|''')
280
+ patterns:
281
+ - include: "#constant_placeholder"
282
+ - include: "#escaped_char"
283
+ comment: single quoted string
284
+ - name: string.quoted.single.single-line.python
285
+ endCaptures:
286
+ "1":
287
+ name: punctuation.definition.string.end.python
288
+ "2":
289
+ name: invalid.illegal.unclosed-string.python
290
+ begin: (')
291
+ beginCaptures:
292
+ "1":
293
+ name: punctuation.definition.string.begin.python
294
+ end: (')|(\n)
295
+ patterns:
296
+ - include: "#constant_placeholder"
297
+ - include: "#escaped_char"
298
+ comment: single quoted string
299
+ line_continuation:
300
+ captures:
301
+ "1":
302
+ name: punctuation.separator.continuation.line.python
303
+ "2":
304
+ name: invalid.illegal.unexpected-text.python
305
+ match: (\\)(.*)$\n?
306
+ constant_placeholder:
307
+ name: constant.other.placeholder.python
308
+ match: (?i:%(\([a-z_]+\))?#?0?\-?[ ]?\+?([0-9]*|\*)(\.([0-9]*|\*))?[hL]?[a-z%])
309
+ function_name:
310
+ patterns:
311
+ - include: "#magic_function_names"
312
+ - include: "#magic_variable_names"
313
+ - include: "#builtin_exceptions"
314
+ - include: "#builtin_functions"
315
+ - include: "#builtin_types"
316
+ - include: "#generic_names"
317
+ string_quoted_double:
318
+ patterns:
319
+ - name: string.quoted.double.block.unicode-raw.python
320
+ endCaptures:
321
+ "1":
322
+ name: punctuation.definition.string.end.python
323
+ "2":
324
+ name: meta.empty-string.double.python
325
+ begin: ((?i:ur))(""")
326
+ beginCaptures:
327
+ "1":
328
+ name: storage.type.string.python
329
+ "2":
330
+ name: punctuation.definition.string.begin.python
331
+ end: ((?<=""")(")""|""")
332
+ patterns:
333
+ - include: "#constant_placeholder"
334
+ - include: "#escaped_unicode_char"
335
+ - include: "#escaped_char"
336
+ - include: source.regexp.python
337
+ comment: single quoted unicode-raw string
338
+ - name: string.quoted.double.block.raw.python
339
+ endCaptures:
340
+ "1":
341
+ name: punctuation.definition.string.end.python
342
+ "2":
343
+ name: meta.empty-string.double.python
344
+ begin: ([rR])(""")
345
+ beginCaptures:
346
+ "1":
347
+ name: storage.type.string.python
348
+ "2":
349
+ name: punctuation.definition.string.begin.python
350
+ end: ((?<=""")(")""|""")
351
+ patterns:
352
+ - include: "#constant_placeholder"
353
+ - include: "#escaped_char"
354
+ - include: source.regexp.python
355
+ comment: double quoted raw string
356
+ - name: string.quoted.double.block.unicode.python
357
+ endCaptures:
358
+ "1":
359
+ name: punctuation.definition.string.end.python
360
+ "2":
361
+ name: meta.empty-string.double.python
362
+ begin: ([uU])(""")
363
+ beginCaptures:
364
+ "1":
365
+ name: storage.type.string.python
366
+ "2":
367
+ name: punctuation.definition.string.begin.python
368
+ end: ((?<=""")(")""|""")
369
+ patterns:
370
+ - include: "#constant_placeholder"
371
+ - include: "#escaped_unicode_char"
372
+ - include: "#escaped_char"
373
+ comment: double quoted unicode string
374
+ - name: string.quoted.double.single-line.unicode-raw.python
375
+ endCaptures:
376
+ "1":
377
+ name: punctuation.definition.string.end.python
378
+ "2":
379
+ name: meta.empty-string.double.python
380
+ "3":
381
+ name: invalid.illegal.unclosed-string.python
382
+ begin: ((?i:ur))(")
383
+ beginCaptures:
384
+ "1":
385
+ name: storage.type.string.python
386
+ "2":
387
+ name: punctuation.definition.string.begin.python
388
+ end: ((?<=")(")|")|(\n)
389
+ patterns:
390
+ - include: "#constant_placeholder"
391
+ - include: "#escaped_unicode_char"
392
+ - include: "#escaped_char"
393
+ - include: source.regexp.python
394
+ comment: double-quoted raw string
395
+ - name: string.quoted.double.single-line.raw.python
396
+ endCaptures:
397
+ "1":
398
+ name: punctuation.definition.string.end.python
399
+ "2":
400
+ name: meta.empty-string.double.python
401
+ "3":
402
+ name: invalid.illegal.unclosed-string.python
403
+ begin: ([rR])(")
404
+ beginCaptures:
405
+ "1":
406
+ name: storage.type.string.python
407
+ "2":
408
+ name: punctuation.definition.string.begin.python
409
+ end: ((?<=")(")|")|(\n)
410
+ patterns:
411
+ - include: "#constant_placeholder"
412
+ - include: "#escaped_char"
413
+ - include: source.regexp.python
414
+ comment: double-quoted raw string
415
+ - name: string.quoted.double.single-line.raw.python
416
+ endCaptures:
417
+ "1":
418
+ name: punctuation.definition.string.end.python
419
+ "2":
420
+ name: meta.empty-string.double.python
421
+ "3":
422
+ name: invalid.illegal.unclosed-string.python
423
+ begin: ([rR])(")
424
+ beginCaptures:
425
+ "1":
426
+ name: storage.type.string.python
427
+ "2":
428
+ name: punctuation.definition.string.begin.python
429
+ end: ((?<=")(")|")|(\n)
430
+ patterns:
431
+ - include: "#constant_placeholder"
432
+ - include: "#escaped_char"
433
+ - include: source.regexp.python
434
+ comment: double-quoted raw string
435
+ - name: string.quoted.double.single-line.unicode.python
436
+ endCaptures:
437
+ "1":
438
+ name: punctuation.definition.string.end.python
439
+ "2":
440
+ name: meta.empty-string.double.python
441
+ "3":
442
+ name: invalid.illegal.unclosed-string.python
443
+ begin: ([uU])(")
444
+ beginCaptures:
445
+ "1":
446
+ name: storage.type.string.python
447
+ "2":
448
+ name: punctuation.definition.string.begin.python
449
+ end: ((?<=")(")|")|(\n)
450
+ patterns:
451
+ - include: "#constant_placeholder"
452
+ - include: "#escaped_unicode_char"
453
+ - include: "#escaped_char"
454
+ comment: double quoted unicode string
455
+ - name: string.quoted.double.block.python
456
+ endCaptures:
457
+ "1":
458
+ name: punctuation.definition.string.end.python
459
+ "2":
460
+ name: meta.empty-string.double.python
461
+ begin: (""")
462
+ beginCaptures:
463
+ "1":
464
+ name: punctuation.definition.string.begin.python
465
+ end: ((?<=""")(")""|""")
466
+ patterns:
467
+ - include: "#constant_placeholder"
468
+ - include: "#escaped_char"
469
+ comment: double quoted string
470
+ - name: string.quoted.double.single-line.python
471
+ endCaptures:
472
+ "1":
473
+ name: punctuation.definition.string.end.python
474
+ "2":
475
+ name: meta.empty-string.double.python
476
+ "3":
477
+ name: invalid.illegal.unclosed-string.python
478
+ begin: (")
479
+ beginCaptures:
480
+ "1":
481
+ name: punctuation.definition.string.begin.python
482
+ end: ((?<=")(")|")|(\n)
483
+ patterns:
484
+ - include: "#constant_placeholder"
485
+ - include: "#escaped_char"
486
+ comment: double quoted string
487
+ language_variables:
488
+ name: variable.language.python
489
+ match: \b(self|cls)\b
490
+ escaped_unicode_char:
491
+ captures:
492
+ "1":
493
+ name: constant.character.escape.unicode.16-bit-hex.python
494
+ "2":
495
+ name: constant.character.escape.unicode.32-bit-hex.python
496
+ "3":
497
+ name: constant.character.escape.unicode.name.python
498
+ match: (\\U[0-9A-Fa-f]{8})|(\\u[0-9A-Fa-f]{4})|(\\N\{[a-zA-Z ]+\})
499
+ uuid: F23DB5B2-7D08-11D9-A709-000D93B6E43C
500
+ foldingStartMarker: ^\s*(def|class)\s+([.a-zA-Z0-9_ <]+)\s*(\((.*)\))?\s*:|\{\s*$|\(\s*$|\[\s*$|^\s*"""(?=.)(?!.*""")
501
+ patterns:
502
+ - name: comment.line.number-sign.python
503
+ captures:
504
+ "1":
505
+ name: punctuation.definition.comment.python
506
+ match: (#).*$\n?
507
+ - name: constant.numeric.integer.long.hexadecimal.python
508
+ match: \b(?i:(0x\h*)L)
509
+ - name: constant.numeric.integer.hexadecimal.python
510
+ match: \b(?i:(0x\h*))
511
+ - name: constant.numeric.integer.long.octal.python
512
+ match: \b(?i:(0[0-7]+)L)
513
+ - name: constant.numeric.integer.octal.python
514
+ match: \b(0[0-7]+)
515
+ - name: constant.numeric.complex.python
516
+ match: \b(?i:(((\d+(\.(?=[^a-zA-Z_])\d*)?|(?<=[^0-9a-zA-Z_])\.\d+)(e[\-\+]?\d+)?))J)
517
+ - name: constant.numeric.float.python
518
+ match: \b(?i:(\d+\.\d*(e[\-\+]?\d+)?))(?=[^a-zA-Z_])
519
+ - name: constant.numeric.float.python
520
+ match: (?<=[^0-9a-zA-Z_])(?i:(\.\d+(e[\-\+]?\d+)?))
521
+ - name: constant.numeric.float.python
522
+ match: \b(?i:(\d+e[\-\+]?\d+))
523
+ - name: constant.numeric.integer.long.decimal.python
524
+ match: \b(?i:([1-9]+[0-9]*|0)L)
525
+ - name: constant.numeric.integer.decimal.python
526
+ match: \b([1-9]+[0-9]*|0)
527
+ - captures:
528
+ "1":
529
+ name: storage.modifier.global.python
530
+ match: \b(global)\b
531
+ - captures:
532
+ "1":
533
+ name: keyword.control.import.python
534
+ "2":
535
+ name: keyword.control.import.from.python
536
+ match: \b(?:(import)|(from))\b
537
+ - name: keyword.control.flow.python
538
+ match: \b(elif|else|except|finally|for|if|try|while|with)\b
539
+ comment: keywords that delimit flow blocks
540
+ - name: keyword.control.flow.python
541
+ match: \b(break|continue|pass|raise|return|yield)\b
542
+ comment: keywords that alter flow from within a block
543
+ - name: keyword.operator.logical.python
544
+ match: \b(and|in|is|not|or)\b
545
+ comment: keyword operators that evaluate to True or False
546
+ - captures:
547
+ "1":
548
+ name: keyword.other.python
549
+ match: \b(as|assert|del|exec|print)\b
550
+ comment: keywords that haven't fit into other groups (yet).
551
+ - name: keyword.operator.assignment.augmented.python
552
+ match: \+\=|-\=|\*\=|/\=|//\=|%\=|&\=|\|\=|\^\=|>>\=|<<\=|\*\*\=
553
+ - name: keyword.operator.arithmetic.python
554
+ match: \+|\-|\*|\*\*|/|//|%|<<|>>|&|\||\^|~
555
+ - name: keyword.operator.comparison.python
556
+ match: <|>|<\=|>\=|\=\=|!\=|<>
557
+ - name: keyword.operator.assignment.python
558
+ match: \=
559
+ - name: meta.class.old-style.python
560
+ endCaptures:
561
+ "1":
562
+ name: punctuation.section.class.begin.python
563
+ begin: ^\s*(class)\s+(?=[a-zA-Z_][a-zA-Z_0-9]*\s*\:)
564
+ contentName: entity.name.type.class.python
565
+ beginCaptures:
566
+ "1":
567
+ name: storage.type.class.python
568
+ end: \s*(:)
569
+ patterns:
570
+ - include: "#entity_name_class"
571
+ - name: meta.class.python
572
+ endCaptures:
573
+ "1":
574
+ name: punctuation.definition.inheritance.end.python
575
+ "2":
576
+ name: punctuation.section.class.begin.python
577
+ "3":
578
+ name: invalid.illegal.missing-section-begin.python
579
+ begin: ^\s*(class)\s+(?=[a-zA-Z_][a-zA-Z_0-9]*\s*\()
580
+ beginCaptures:
581
+ "1":
582
+ name: storage.type.class.python
583
+ end: (\))\s*(?:(\:)|(.*$\n?))
584
+ patterns:
585
+ - begin: (?=[A-Za-z_][A-Za-z0-9_]*)
586
+ contentName: entity.name.type.class.python
587
+ end: (?![A-Za-z0-9_])
588
+ patterns:
589
+ - include: "#entity_name_class"
590
+ - begin: (\()
591
+ contentName: meta.class.inheritance.python
592
+ beginCaptures:
593
+ "1":
594
+ name: punctuation.definition.inheritance.begin.python
595
+ end: (?=\)|:)
596
+ patterns:
597
+ - endCaptures:
598
+ "1":
599
+ name: punctuation.separator.inheritance.python
600
+ begin: (?<=\(|,)\s*
601
+ contentName: entity.other.inherited-class.python
602
+ end: \s*(?:(,)|(?=\)))
603
+ patterns:
604
+ - include: $self
605
+ - name: meta.class.python
606
+ endCaptures:
607
+ "1":
608
+ name: punctuation.definition.inheritance.begin.python
609
+ "2":
610
+ name: invalid.illegal.missing-inheritance.python
611
+ begin: ^\s*(class)\s+(?=[a-zA-Z_][a-zA-Z_0-9])
612
+ beginCaptures:
613
+ "1":
614
+ name: storage.type.class.python
615
+ end: (\()|\s*($\n?|#.*$\n?)
616
+ patterns:
617
+ - begin: (?=[A-Za-z_][A-Za-z0-9_]*)
618
+ contentName: entity.name.type.class.python
619
+ end: (?![A-Za-z0-9_])
620
+ patterns:
621
+ - include: "#entity_name_function"
622
+ - name: meta.function.python
623
+ endCaptures:
624
+ "1":
625
+ name: punctuation.definition.parameters.end.python
626
+ "2":
627
+ name: punctuation.section.function.begin.python
628
+ "3":
629
+ name: invalid.illegal.missing-section-begin.python
630
+ begin: ^\s*(def)\s+(?=[A-Za-z_][A-Za-z0-9_]*\s*\()
631
+ beginCaptures:
632
+ "1":
633
+ name: storage.type.function.python
634
+ end: (\))\s*(?:(\:)|(.*$\n?))
635
+ patterns:
636
+ - begin: (?=[A-Za-z_][A-Za-z0-9_]*)
637
+ contentName: entity.name.function.python
638
+ end: (?![A-Za-z0-9_])
639
+ patterns:
640
+ - include: "#entity_name_function"
641
+ - begin: (\()
642
+ contentName: meta.function.parameters.python
643
+ beginCaptures:
644
+ "1":
645
+ name: punctuation.definition.parameters.begin.python
646
+ end: (?=\)\s*\:)
647
+ patterns:
648
+ - include: "#keyword_arguments"
649
+ - captures:
650
+ "1":
651
+ name: variable.parameter.function.python
652
+ "2":
653
+ name: punctuation.separator.parameters.python
654
+ match: \b([a-zA-Z_][a-zA-Z_0-9]*)\s*(?:(,)|(?=[\n\)]))
655
+ - name: meta.function.python
656
+ endCaptures:
657
+ "1":
658
+ name: punctuation.definition.parameters.begin.python
659
+ "2":
660
+ name: invalid.illegal.missing-parameters.python
661
+ begin: ^\s*(def)\s+(?=[A-Za-z_][A-Za-z0-9_]*)
662
+ beginCaptures:
663
+ "1":
664
+ name: storage.type.function.python
665
+ end: (\()|\s*($\n?|#.*$\n?)
666
+ patterns:
667
+ - begin: (?=[A-Za-z_][A-Za-z0-9_]*)
668
+ contentName: entity.name.function.python
669
+ end: (?![A-Za-z0-9_])
670
+ patterns:
671
+ - include: "#entity_name_function"
672
+ - name: meta.function.decorator.python
673
+ endCaptures:
674
+ "1":
675
+ name: punctuation.definition.arguments.end.python
676
+ begin: ^\s*(?=@\s*[A-Za-z_][A-Za-z0-9_]*(?:\.[a-zA-Z_][a-zA-Z_0-9]*)*\s*\()
677
+ end: (\))
678
+ patterns:
679
+ - begin: (?=(@)\s*[A-Za-z_][A-Za-z0-9_]*(?:\.[A-Za-z_][A-Za-z0-9_]*)*\s*\()
680
+ contentName: entity.name.function.decorator.python
681
+ beginCaptures:
682
+ "1":
683
+ name: punctuation.definition.decorator.python
684
+ end: (?=\s*\()
685
+ patterns:
686
+ - include: "#dotted_name"
687
+ - begin: (\()
688
+ contentName: meta.function.decorator.arguments.python
689
+ beginCaptures:
690
+ "1":
691
+ name: punctuation.definition.arguments.begin.python
692
+ end: (?=\))
693
+ patterns:
694
+ - include: "#keyword_arguments"
695
+ - include: $self
696
+ comment: a decorator may be a function call which returns a decorator.
697
+ - name: meta.function.decorator.python
698
+ begin: ^\s*(?=@\s*[A-Za-z_][A-Za-z0-9_]*(?:\.[a-zA-Z_][a-zA-Z_0-9]*)*)
699
+ contentName: entity.name.function.decorator.python
700
+ end: (?=\s|$\n?|#)
701
+ patterns:
702
+ - begin: (?=(@)\s*[A-Za-z_][A-Za-z0-9_]*(\.[A-Za-z_][A-Za-z0-9_]*)*)
703
+ beginCaptures:
704
+ "1":
705
+ name: punctuation.definition.decorator.python
706
+ end: (?=\s|$\n?|#)
707
+ patterns:
708
+ - include: "#dotted_name"
709
+ - name: meta.function-call.python
710
+ endCaptures:
711
+ "1":
712
+ name: punctuation.definition.arguments.end.python
713
+ begin: (?<=\)|\])\s*(\()
714
+ contentName: meta.function-call.arguments.python
715
+ beginCaptures:
716
+ "1":
717
+ name: punctuation.definition.arguments.begin.python
718
+ end: (\))
719
+ patterns:
720
+ - include: "#keyword_arguments"
721
+ - include: $self
722
+ - name: meta.function-call.python
723
+ endCaptures:
724
+ "1":
725
+ name: punctuation.definition.arguments.end.python
726
+ begin: (?=[A-Za-z_][A-Za-z0-9_]*(?:\.[a-zA-Z_][a-zA-Z_0-9]*)*\s*\()
727
+ end: (\))
728
+ patterns:
729
+ - begin: (?=[A-Za-z_][A-Za-z0-9_]*(?:\.[A-Za-z_][A-Za-z0-9_]*)*\s*\()
730
+ end: (?=\s*\()
731
+ patterns:
732
+ - include: "#dotted_name"
733
+ - begin: (\()
734
+ contentName: meta.function-call.arguments.python
735
+ beginCaptures:
736
+ "1":
737
+ name: punctuation.definition.arguments.begin.python
738
+ end: (?=\))
739
+ patterns:
740
+ - include: "#keyword_arguments"
741
+ - include: $self
742
+ - name: meta.item-access.python
743
+ begin: (?=[A-Za-z_][A-Za-z0-9_]*(?:\.[a-zA-Z_][a-zA-Z_0-9]*)*\s*\[)
744
+ end: (\])
745
+ patterns:
746
+ - begin: (?=[A-Za-z_][A-Za-z0-9_]*(?:\.[A-Za-z_][A-Za-z0-9_]*)*\s*\[)
747
+ end: (?=\s*\[)
748
+ patterns:
749
+ - include: "#dotted_name"
750
+ - endCaptures:
751
+ "1":
752
+ name: punctuation.definition.arguments.end.python
753
+ begin: (\[)
754
+ contentName: meta.item-access.arguments.python
755
+ beginCaptures:
756
+ "1":
757
+ name: punctuation.definition.arguments.begin.python
758
+ end: (?=\])
759
+ patterns:
760
+ - include: $self
761
+ - name: meta.item-access.python
762
+ endCaptures:
763
+ "1":
764
+ name: punctuation.definition.arguments.end.python
765
+ begin: (?<=\)|\])\s*(\[)
766
+ contentName: meta.item-access.arguments.python
767
+ beginCaptures:
768
+ "1":
769
+ name: punctuation.definition.arguments.begin.python
770
+ end: (\])
771
+ patterns:
772
+ - include: $self
773
+ - captures:
774
+ "1":
775
+ name: storage.type.function.python
776
+ match: \b(def|lambda)\b
777
+ - captures:
778
+ "1":
779
+ name: storage.type.class.python
780
+ match: \b(class)\b
781
+ - include: "#line_continuation"
782
+ - include: "#language_variables"
783
+ - name: constant.language.python
784
+ match: \b(None|True|False|Ellipsis|NotImplemented)\b
785
+ - include: "#string_quoted_single"
786
+ - include: "#string_quoted_double"
787
+ - include: "#dotted_name"
788
+ - begin: (\()
789
+ end: (\))
790
+ patterns:
791
+ - include: $self
792
+ - captures:
793
+ "1":
794
+ name: punctuation.definition.list.begin.python
795
+ "2":
796
+ name: meta.empty-list.python
797
+ "3":
798
+ name: punctuation.definition.list.end.python
799
+ match: (\[)(\s*(\]))\b
800
+ - name: meta.structure.list.python
801
+ endCaptures:
802
+ "1":
803
+ name: punctuation.definition.list.end.python
804
+ begin: (\[)
805
+ beginCaptures:
806
+ "1":
807
+ name: punctuation.definition.list.begin.python
808
+ end: (\])
809
+ patterns:
810
+ - endCaptures:
811
+ "1":
812
+ name: punctuation.separator.list.python
813
+ begin: (?<=\[|\,)\s*(?![\],])
814
+ contentName: meta.structure.list.item.python
815
+ end: \s*(?:(,)|(?=\]))
816
+ patterns:
817
+ - include: $self
818
+ - name: meta.structure.tuple.python
819
+ captures:
820
+ "1":
821
+ name: punctuation.definition.tuple.begin.python
822
+ "2":
823
+ name: meta.empty-tuple.python
824
+ "3":
825
+ name: punctuation.definition.tuple.end.python
826
+ match: (\()(\s*(\)))
827
+ - name: meta.structure.dictionary.python
828
+ captures:
829
+ "1":
830
+ name: punctuation.definition.dictionary.begin.python
831
+ "2":
832
+ name: meta.empty-dictionary.python
833
+ "3":
834
+ name: punctuation.definition.dictionary.end.python
835
+ match: (\{)(\s*(\}))
836
+ - name: meta.structure.dictionary.python
837
+ endCaptures:
838
+ "1":
839
+ name: punctuation.definition.dictionary.end.python
840
+ begin: (\{)
841
+ beginCaptures:
842
+ "1":
843
+ name: punctuation.definition.dictionary.begin.python
844
+ end: (\})
845
+ patterns:
846
+ - endCaptures:
847
+ "1":
848
+ name: punctuation.separator.valuepair.dictionary.python
849
+ begin: (?<=\{|\,|^)\s*(?![\},])
850
+ contentName: meta.structure.dictionary.key.python
851
+ end: \s*(?:(?=\})|(\:))
852
+ patterns:
853
+ - include: $self
854
+ - endCaptures:
855
+ "1":
856
+ name: punctuation.separator.dictionary.python
857
+ begin: (?<=\:|^)\s*
858
+ contentName: meta.structure.dictionary.value.python
859
+ end: \s*(?:(?=\})|(,))
860
+ patterns:
861
+ - include: $self
862
+ foldingStopMarker: ^\s*$|^\s*\}|^\s*\]|^\s*\)|^\s*"""\s*$
863
+ keyEquivalent: ^~P
864
+ comment: "\n\
865
+ \ttodo:\n\
866
+ \t\tlist comprehension / generator comprehension scope.\n\
867
+ \t\t\n\
868
+ \t"