textpow1x 0.11.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (173) hide show
  1. data/Gemfile +1 -2
  2. data/Gemfile.lock +11 -10
  3. data/README.rdoc +4 -6
  4. data/Rakefile +2 -7
  5. data/lib/textpow.rb +4 -0
  6. data/lib/textpow/syntax/actionscript.syntax +97 -0
  7. data/lib/textpow/syntax/active4d.syntax +276 -0
  8. data/lib/textpow/syntax/active4d_html.syntax +311 -0
  9. data/lib/textpow/syntax/active4d_ini.syntax +50 -0
  10. data/lib/textpow/syntax/active4d_library.syntax +21 -0
  11. data/lib/textpow/syntax/ada.syntax +33 -0
  12. data/lib/textpow/syntax/antlr.syntax +151 -0
  13. data/lib/textpow/syntax/apache.syntax +191 -0
  14. data/lib/textpow/syntax/applescript.syntax +384 -0
  15. data/lib/textpow/syntax/asp.syntax +70 -0
  16. data/lib/textpow/syntax/asp_vb.net.syntax +129 -0
  17. data/lib/textpow/syntax/bibtex.syntax +151 -0
  18. data/lib/textpow/syntax/blog_html.syntax +41 -0
  19. data/lib/textpow/syntax/blog_markdown.syntax +42 -0
  20. data/lib/textpow/syntax/blog_text.syntax +27 -0
  21. data/lib/textpow/syntax/blog_textile.syntax +27 -0
  22. data/lib/textpow/syntax/broken/markdown.syntax +543 -0
  23. data/lib/textpow/syntax/broken/php.syntax +1253 -0
  24. data/lib/textpow/syntax/buggy/nemerle.syntax +74 -0
  25. data/lib/textpow/syntax/build.syntax +53 -0
  26. data/lib/textpow/syntax/bulletin_board.syntax +287 -0
  27. data/lib/textpow/syntax/c++.syntax +186 -0
  28. data/lib/textpow/syntax/c.syntax +414 -0
  29. data/lib/textpow/syntax/cake.syntax +55 -0
  30. data/lib/textpow/syntax/camlp4.syntax +36 -0
  31. data/lib/textpow/syntax/cm.syntax +32 -0
  32. data/lib/textpow/syntax/coffeescript.syntax +216 -0
  33. data/lib/textpow/syntax/coldfusion.syntax +119 -0
  34. data/lib/textpow/syntax/context_free.syntax +176 -0
  35. data/lib/textpow/syntax/cs.syntax +59 -0
  36. data/lib/textpow/syntax/css.syntax +195 -0
  37. data/lib/textpow/syntax/css_experimental.syntax +1925 -0
  38. data/lib/textpow/syntax/csv.syntax +68 -0
  39. data/lib/textpow/syntax/d.syntax +142 -0
  40. data/lib/textpow/syntax/diff.syntax +81 -0
  41. data/lib/textpow/syntax/dokuwiki.syntax +204 -0
  42. data/lib/textpow/syntax/dot.syntax +47 -0
  43. data/lib/textpow/syntax/doxygen.syntax +43 -0
  44. data/lib/textpow/syntax/dylan.syntax +62 -0
  45. data/lib/textpow/syntax/eiffel.syntax +78 -0
  46. data/lib/textpow/syntax/erlang.syntax +922 -0
  47. data/lib/textpow/syntax/f-script.syntax +80 -0
  48. data/lib/textpow/syntax/fortran.syntax +141 -0
  49. data/lib/textpow/syntax/fxscript.syntax +142 -0
  50. data/lib/textpow/syntax/greasemonkey.syntax +34 -0
  51. data/lib/textpow/syntax/gri.syntax +83 -0
  52. data/lib/textpow/syntax/groovy.syntax +191 -0
  53. data/lib/textpow/syntax/gtd.syntax +22 -0
  54. data/lib/textpow/syntax/gtdalt.syntax +143 -0
  55. data/lib/textpow/syntax/haml.syntax +88 -0
  56. data/lib/textpow/syntax/haskell.syntax +88 -0
  57. data/lib/textpow/syntax/html-asp.syntax +27 -0
  58. data/lib/textpow/syntax/html.syntax +362 -0
  59. data/lib/textpow/syntax/html_django.syntax +36 -0
  60. data/lib/textpow/syntax/html_for_asp.net.syntax +424 -0
  61. data/lib/textpow/syntax/html_mason.syntax +119 -0
  62. data/lib/textpow/syntax/html_rails.syntax +40 -0
  63. data/lib/textpow/syntax/html_tcl.syntax +26 -0
  64. data/lib/textpow/syntax/icalendar.syntax +32 -0
  65. data/lib/textpow/syntax/inform.syntax +48 -0
  66. data/lib/textpow/syntax/ini.syntax +55 -0
  67. data/lib/textpow/syntax/installer_distribution_script.syntax +77 -0
  68. data/lib/textpow/syntax/io.syntax +81 -0
  69. data/lib/textpow/syntax/java.syntax +211 -0
  70. data/lib/textpow/syntax/javaproperties.syntax +20 -0
  71. data/lib/textpow/syntax/javascript.syntax +256 -0
  72. data/lib/textpow/syntax/javascript_+_prototype.syntax +72 -0
  73. data/lib/textpow/syntax/javascript_+_prototype_bracketed.syntax +140 -0
  74. data/lib/textpow/syntax/jquery_javascript.syntax +114 -0
  75. data/lib/textpow/syntax/json.syntax +136 -0
  76. data/lib/textpow/syntax/languagedefinition.syntax +708 -0
  77. data/lib/textpow/syntax/latex.syntax +566 -0
  78. data/lib/textpow/syntax/latex_beamer.syntax +41 -0
  79. data/lib/textpow/syntax/latex_log.syntax +50 -0
  80. data/lib/textpow/syntax/latex_memoir.syntax +64 -0
  81. data/lib/textpow/syntax/lexflex.syntax +219 -0
  82. data/lib/textpow/syntax/lighttpd.syntax +54 -0
  83. data/lib/textpow/syntax/lilypond.syntax +492 -0
  84. data/lib/textpow/syntax/lisp.syntax +61 -0
  85. data/lib/textpow/syntax/literate_haskell.syntax +24 -0
  86. data/lib/textpow/syntax/logo.syntax +29 -0
  87. data/lib/textpow/syntax/logtalk.syntax +152 -0
  88. data/lib/textpow/syntax/lua.syntax +86 -0
  89. data/lib/textpow/syntax/m.syntax +142 -0
  90. data/lib/textpow/syntax/macports_portfile.syntax +163 -0
  91. data/lib/textpow/syntax/mail.syntax +118 -0
  92. data/lib/textpow/syntax/makefile.syntax +36 -0
  93. data/lib/textpow/syntax/man.syntax +17 -0
  94. data/lib/textpow/syntax/mediawiki.syntax +567 -0
  95. data/lib/textpow/syntax/mel.syntax +92 -0
  96. data/lib/textpow/syntax/mips.syntax +66 -0
  97. data/lib/textpow/syntax/mod_perl.syntax +50 -0
  98. data/lib/textpow/syntax/modula-3.syntax +47 -0
  99. data/lib/textpow/syntax/moinmoin.syntax +189 -0
  100. data/lib/textpow/syntax/mootools.syntax +572 -0
  101. data/lib/textpow/syntax/movable_type.syntax +162 -0
  102. data/lib/textpow/syntax/multimarkdown.syntax +39 -0
  103. data/lib/textpow/syntax/objective-c++.syntax +18 -0
  104. data/lib/textpow/syntax/objective-c.syntax +233 -0
  105. data/lib/textpow/syntax/ocaml.syntax +764 -0
  106. data/lib/textpow/syntax/ocamllex.syntax +167 -0
  107. data/lib/textpow/syntax/ocamlyacc.syntax +184 -0
  108. data/lib/textpow/syntax/old/YAML.yaml +160 -0
  109. data/lib/textpow/syntax/old/txt2tags.yaml +139 -0
  110. data/lib/textpow/syntax/opengl.syntax +14 -0
  111. data/lib/textpow/syntax/pascal.syntax +77 -0
  112. data/lib/textpow/syntax/perl.syntax +1113 -0
  113. data/lib/textpow/syntax/plain_text.syntax +32 -0
  114. data/lib/textpow/syntax/pmwiki.syntax +113 -0
  115. data/lib/textpow/syntax/postscript.syntax +114 -0
  116. data/lib/textpow/syntax/processing.syntax +106 -0
  117. data/lib/textpow/syntax/prolog.syntax +40 -0
  118. data/lib/textpow/syntax/property_list.syntax +635 -0
  119. data/lib/textpow/syntax/python.syntax +868 -0
  120. data/lib/textpow/syntax/python_django.syntax +21 -0
  121. data/lib/textpow/syntax/qmake_project.syntax +114 -0
  122. data/lib/textpow/syntax/qt_c++.syntax +26 -0
  123. data/lib/textpow/syntax/quake3_config.syntax +32 -0
  124. data/lib/textpow/syntax/r.syntax +81 -0
  125. data/lib/textpow/syntax/r_console.syntax +16 -0
  126. data/lib/textpow/syntax/ragel.syntax +201 -0
  127. data/lib/textpow/syntax/rd_r_documentation.syntax +91 -0
  128. data/lib/textpow/syntax/regexp.syntax +50 -0
  129. data/lib/textpow/syntax/regular_expressions_oniguruma.syntax +107 -0
  130. data/lib/textpow/syntax/regular_expressions_python.syntax +109 -0
  131. data/lib/textpow/syntax/release_notes.syntax +46 -0
  132. data/lib/textpow/syntax/remind.syntax +253 -0
  133. data/lib/textpow/syntax/restructuredtext.syntax +250 -0
  134. data/lib/textpow/syntax/rez.syntax +80 -0
  135. data/lib/textpow/syntax/ruby.syntax +1035 -0
  136. data/lib/textpow/syntax/ruby_experimental.syntax +145 -0
  137. data/lib/textpow/syntax/ruby_on_rails.syntax +88 -0
  138. data/lib/textpow/syntax/s5.syntax +69 -0
  139. data/lib/textpow/syntax/sass.syntax +45 -0
  140. data/lib/textpow/syntax/scheme.syntax +347 -0
  141. data/lib/textpow/syntax/scilab.syntax +41 -0
  142. data/lib/textpow/syntax/setext.syntax +147 -0
  143. data/lib/textpow/syntax/shell-unix-generic.syntax +384 -0
  144. data/lib/textpow/syntax/slate.syntax +149 -0
  145. data/lib/textpow/syntax/smarty.syntax +63 -0
  146. data/lib/textpow/syntax/sql.syntax +237 -0
  147. data/lib/textpow/syntax/sql_rails.syntax +18 -0
  148. data/lib/textpow/syntax/ssh-config.syntax +33 -0
  149. data/lib/textpow/syntax/standard_ml.syntax +121 -0
  150. data/lib/textpow/syntax/strings_file.syntax +39 -0
  151. data/lib/textpow/syntax/subversion_commit_message.syntax +36 -0
  152. data/lib/textpow/syntax/sweave.syntax +84 -0
  153. data/lib/textpow/syntax/swig.syntax +57 -0
  154. data/lib/textpow/syntax/tcl.syntax +152 -0
  155. data/lib/textpow/syntax/template_toolkit.syntax +121 -0
  156. data/lib/textpow/syntax/tex.syntax +86 -0
  157. data/lib/textpow/syntax/tex_math.syntax +49 -0
  158. data/lib/textpow/syntax/textile.syntax +215 -0
  159. data/lib/textpow/syntax/tsv.syntax +50 -0
  160. data/lib/textpow/syntax/twiki.syntax +241 -0
  161. data/lib/textpow/syntax/txt2tags.syntax +79 -0
  162. data/lib/textpow/syntax/vectorscript.syntax +57 -0
  163. data/lib/textpow/syntax/xhtml_1.0.syntax +4027 -0
  164. data/lib/textpow/syntax/xml.syntax +180 -0
  165. data/lib/textpow/syntax/xml_strict.syntax +92 -0
  166. data/lib/textpow/syntax/xsl.syntax +60 -0
  167. data/lib/textpow/syntax/yaml.syntax +160 -0
  168. data/lib/textpow/syntax/yui_javascript.syntax +176 -0
  169. data/lib/textpow/version.rb +2 -2
  170. data/spec/spec_helper.rb +2 -0
  171. data/spec/textpow_spec.rb +34 -0
  172. metadata +169 -5
  173. data/test/textpow_test.rb +0 -24
@@ -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,114 @@
1
+ ---
2
+ name: qmake Project file
3
+ fileTypes:
4
+ - pro
5
+ - pri
6
+ scopeName: source.qmake
7
+ uuid: 3D54A8F9-17CA-422A-A1D6-DE5F98B9DEF4
8
+ patterns:
9
+ - name: markup.other.template.qmake
10
+ captures:
11
+ "1":
12
+ name: variable.language.qmake
13
+ "2":
14
+ name: punctuation.separator.key-value.qmake
15
+ begin: (TEMPLATE)\s*(=)
16
+ end: $\n?
17
+ patterns:
18
+ - name: keyword.other.qmake
19
+ match: \b(app|lib|subdirs|vcapp|vclib)\b
20
+ - name: markup.other.config.qmake
21
+ captures:
22
+ "1":
23
+ name: variable.language.qmake
24
+ "3":
25
+ name: punctuation.separator.key-value.qmake
26
+ begin: (CONFIG)\s*(\+|\-)?(=)
27
+ end: $\n?
28
+ patterns:
29
+ - name: keyword.other.qmake
30
+ match: \b(release|debug|warn_(on|off)|qt|opengl|thread|x11|windows|console|dll|staticlib|plugin|designer|uic3|no_lflags_merge|exceptions|rtti|stl|flat|app_bundle|no_batch|qtestlib|ppc|x86)\b
31
+ - name: markup.other.qt.qmake
32
+ captures:
33
+ "1":
34
+ name: variable.language.qmake
35
+ "3":
36
+ name: punctuation.separator.key-value.qmake
37
+ begin: (QT)\s*(\+|\-)?(=)
38
+ end: $\n?
39
+ patterns:
40
+ - name: keyword.other.qmake
41
+ match: \b(core|gui|network|opengl|sql|svg|xml|qt3support)\b
42
+ - name: variable.language.qmake
43
+ match: \b(R(C(C_DIR|_FILE)|E(S_FILE|QUIRES))|M(OC_DIR|AKE(_MAKEFILE|FILE(_GENERATOR)?))|S(RCMOC|OURCES|UBDIRS)|HEADERS|YACC(SOURCES|IMPLS|OBJECTS)|CONFIG|T(RANSLATIONS|ARGET(_(EXT|\d+(\.\d+\.\d+)?))?)|INCLUDEPATH|OBJ(MOC|ECTS(_DIR)?)|D(SP_TEMPLATE|ISTFILES|E(STDIR(_TARGET)?|PENDPATH|F(_FILE|INES))|LLDESTDIR)|UI(C(IMPLS|OBJECTS)|_(SOURCES_DIR|HEADERS_DIR|DIR))|P(RE(COMPILED_HEADER|_TARGETDEPS)|OST_TARGETDEPS)|V(PATH|ER(SION|_(M(IN|AJ)|PAT)))|Q(MAKE(SPEC|_(RUN_C(XX(_IMP)?|C(_IMP)?)|MOC_SRC|C(XXFLAGS_(RELEASE|MT(_D(BG|LL(DBG)?))?|SHLIB|THREAD|DEBUG|WARN_O(N|FF))|FLAGS_(RELEASE|MT(_D(BG|LL(DBG)?))?|SHLIB|THREAD|DEBUG|WARN_O(N|FF))|LEAN)|TARGET|IN(CDIR(_(X|THREAD|OPENGL|QT))?|FO_PLIST)|UIC|P(RE_LINK|OST_LINK)|EXT(_(MOC|H|CPP|YACC|OBJ|UI|PRL|LEX)|ENSION_SHLIB)|Q(MAKE|T_DLL)|F(ILETAGS|AILED_REQUIREMENTS)|L(N_SHLIB|I(B(S(_(RT(MT)?|X|CONSOLE|THREAD|OPENGL(_QT)?|QT(_(OPENGL|DLL))?|WINDOWS))?|_FLAG|DIR(_(X|OPENGL|QT|FLAGS))?)|NK_SHLIB_CMD)|FLAGS(_(RELEASE|S(H(LIB|APP)|ONAME)|CONSOLE(_DLL)?|THREAD|DEBUG|PLUGIN|QT_DLL|WINDOWS(_DLL)?))?)|A(R_CMD|PP_(OR_DLL|FLAG))))?|T_THREAD)|FORMS|L(IBS|EX(SOURCES|IMPLS|OBJECTS)))\b
44
+ - name: markup.other.assignment.qmake
45
+ captures:
46
+ "1":
47
+ name: variable.other.qmake
48
+ "4":
49
+ name: punctuation.separator.key-value.qmake
50
+ begin: (\b([\w\d_]+\.[\w\d_]+|[A-Z_]+))?\s*(\+|\-)?(=)
51
+ end: $\n?
52
+ patterns:
53
+ - name: variable.other.qmake
54
+ captures:
55
+ "1":
56
+ name: punctuation.definition.variable.qmake
57
+ match: (\$\$)([A-Z_]+|[\w\d_]+\.[\w\d_]+)|\$\([\w\d_]+\)
58
+ - name: constant.other.filename.qmake
59
+ match: "[\\w\\d\\/_\\-\\.\\:]+"
60
+ - name: string.quoted.double.qmake
61
+ endCaptures:
62
+ "0":
63
+ name: punctuation.definition.string.end.qmake
64
+ begin: "\""
65
+ beginCaptures:
66
+ "0":
67
+ name: punctuation.definition.string.begin.qmake
68
+ end: "\""
69
+ - name: string.interpolated.qmake
70
+ endCaptures:
71
+ "0":
72
+ name: punctuation.definition.string.end.qmake
73
+ begin: "`"
74
+ beginCaptures:
75
+ "0":
76
+ name: punctuation.definition.string.begin.qmake
77
+ end: "`"
78
+ - name: markup.other.assignment.continuation.qmake
79
+ captures:
80
+ "1":
81
+ name: string.regexp.qmake
82
+ begin: (\\)
83
+ end: ^[^#]
84
+ patterns:
85
+ - name: comment.line.number-sign.qmake
86
+ captures:
87
+ "1":
88
+ name: punctuation.definition.comment.qmake
89
+ match: (#).*$\n?
90
+ - name: comment.line.number-sign.qmake
91
+ captures:
92
+ "1":
93
+ name: punctuation.definition.comment.qmake
94
+ match: (#).*$\n?
95
+ - endCaptures:
96
+ "1":
97
+ name: punctuation.definition.parameters.qmake
98
+ begin: \b(basename|CONFIG|contains|count|dirname|error|exists|find|for|include|infile|isEmpty|join|member|message|prompt|quote|sprintf|system|unique|warning)\s*(\()
99
+ contentName: variable.parameter.qmake
100
+ beginCaptures:
101
+ "1":
102
+ name: entity.name.function.qmake
103
+ "2":
104
+ name: punctuation.definition.parameters.qmake
105
+ end: (\))
106
+ comment: entity.name.function.qmake
107
+ - name: keyword.other.scope.qmake
108
+ match: \b(unix|win32|mac|debug|release)\b
109
+ - name: comment.line.number-sign.qmake
110
+ captures:
111
+ "1":
112
+ name: punctuation.definition.comment.qmake
113
+ match: (#).*$\n?
114
+ keyEquivalent: ^~Q
@@ -0,0 +1,26 @@
1
+ ---
2
+ name: Qt C++
3
+ fileTypes:
4
+ - cpp
5
+ - h
6
+ firstLineMatch: -\*- C\+\+ -\*-
7
+ scopeName: source.c++.qt
8
+ uuid: C0D24A46-0534-11DB-8949-0011242E4184
9
+ foldingStartMarker: "(?x)\n\
10
+ \t\t /\\*\\*(?!\\*)\n\
11
+ \t\t|^(?![^{]*?//|[^{]*?/\\*(?!.*?\\*/.*?\\{)).*?\\{\\s*($|//|/\\*(?!.*?\\*/.*\\S))\n\
12
+ \t"
13
+ patterns:
14
+ - name: support.other.macro.qt
15
+ match: \bQ_(CLASSINFO|ENUMS|FLAGS|INTERFACES|OBJECT|PROPERTY)\b
16
+ - name: support.function.qt
17
+ match: \b((dis)?connect|emit|fore(ach|ver)|tr(Utf8)?|qobject_cast)\b
18
+ - name: support.class.qt
19
+ match: \bQ(Abstract(Button|EventDispatcher|Extension(Factory|Manager)|FileEngine(Handler)?|FormBuilder|GraphicsShapeItem|Item(Delegate|Model|View)|ListModel|PrintDialog|ProxyModel|ScrollArea|Slider|Socket|SpinBox|TableModel|TextDocumentLayout)|Accessible(Bridge|BridgePlugin|Event|Interface|Object|Plugin|Widget)?|Action(Event|Group)?|(Core)?Application|AssistantClient|Ax(Aggregated|Base|Bindable|Factory|Object|Script|ScriptEngine|ScriptManager|Widget)|BasicTimer|Bit(Array|map)|BoxLayout|Brush|Buffer|ButtonGroup|ByteArray(Matcher)?|(CDE|Windows(XP)?|Cleanlooks|Common|Mac|Plastique|Motif)Style|Cache|CalendarWidget|Char|CheckBox|ChildEvent|Clipboard|CloseEvent|Color(Dialog|map)?|ComboBox|Completer|ConicalGradient|ContextMenuEvent|CopChannel|Cursor|CustomRasterPaintDevice|DBus(AbstractAdaptor|AbstractInterface|Argument|Connection(Interface)?|Error|Interface|Message|ObjectPath|Reply|Server|Signature|Variant)|Data(Stream|WidgetMapper)|Date((Time)?(Edit)?)|Decoration(Factory|Plugin)?|Designer(ActionEditorInterface|ContainerExtension|CustomWidgetCollectionInterface|CustomWidgetInterface|FormEditorInterface|FormWindowCursorInterface|FormWindowInterface|FormWindowManagerInterface|MemberSheetExtension|ObjectInspectorInterface|PropertyEditorInterface|PropertySheetExtension|TaskMenuExtension|WidgetBoxInterface)|Desktop(Services|Widget)|Dial(og|ogButtonBox)?|Dir(Model|ectPainter)?|DockWidget|Dom(Attr|CDATASection|CharacterData|Comment|Document|DocumentFragment|DocumentType|Element|Entity|EntityReference|Implementation|NamedNodeMap|Node|NodeList|Notation|ProcessingInstruction|Text)|Double(SpinBox|Validator)|Drag((Enter|Leave|Move)Event)?|(Drop|DynamicPropertyChange)Event|ErrorMessage|Event(Loop)?|Extension(Factory|Manager)|FSFileEngine|File(Dialog|IconProvider|Info|OpenEvent|SystemWatcher)?|Flags?|Focus(Event|Frame)|Font(ComboBox|Database|Dialog|Info|MetricsF?)?|FormBuilder|Frame|Ftp|GL(Colormap|Context|Format|FramebufferObject|PixelBuffer|Widget)|Generic(Return)?Argument|Gradient|Graphics(EllipseItem|Item|ItemAnimation|ItemGroup|LineItem|PathItem|PixmapItem|PolygonItem|RectItem|Scene((ContextMenu|Hover|Mouse|Wheel)?Event)?|SimpleTextItem|SvgItem|TextItem|View)|GridLayout|GroupBox|HBoxLayout|Hash(Iterator)?|HeaderView|(Help|Hide|Hover)Event|Host(Address|Info)|Http((Response|Request)?Header)?|IODevice|Icon(DragEvent|Engine(Plugin)?)?|Image(IO(Handler|Plugin)|Reader|Writer)?|Input(Context(Factory|Plugin)?|Dialog|Event|MethodEvent)|IntValidator|Item(Delegate|Editor(CreatorBase|Factory)|Selection(Model|Range)?)|KbdDriver(Factory|Plugin)|Key(Event|Sequence)|LCDNumber|Label|Latin1(Char|String)|Layout(Item)?|Library(Info)?|Line(Edit|F)?|LinearGradient|LinkedList(Iterator)?|LinuxFbScreen|List(View|Iterator|Widget(Item)?)?|Locale|MacPasteboardMime|MainWindow|Map(Iterator)?|Matrix|Menu(Bar)?|MessageBox|Meta(ClassInfo|Enum|Method|Object|Property|Type)|Mime(Data|Source)|ModelIndex|MouseDriver(Factory|Plugin)|(Move|Mouse)Event|Movie|Multi(Hash|Map)|Mutable(Hash|(Linked)?List|Map|Set|Vector)Iterator|Mutex(Locker)?|Network(AddressEntry|Interface|Proxy)|Object(CleanupHandler)?|PageSetupDialog|Paint(Device|Engine(State)?|Event|er(Path(Stroker)?)?)|Pair|Palette|Pen|PersistentModelIndex|Picture(FormatPlugin|IO)?|Pixmap(Cache)?|PluginLoader|PointF?|Pointer|PolygonF?|Print(Dialog|Engine|er)|Process|Progress(Bar|Dialog)|ProxyModel|PushButton|Queue|RadialGradient|RadioButton|RasterPaintEngine|ReadLocker|ReadWriteLock|RectF?|RegExp(Validator)?|Region|ResizeEvent|Resource|RubberBand|Screen(Cursor|Driver(Factory|Plugin))?|Scroll(Area|Bar)|Semaphore|SessionManager|Set(Iterator)?|Settings|SharedData(Pointer)?|Shortcut(Event)?|ShowEvent|Signal(Mapper|Spy)|Size(Grip|Policy|F)?|Slider|SocketNotifier|SortFilterProxyModel|Sound|SpacerItem|SpinBox|SplashScreen|Splitter(Handle)?|Sql(Database|Driver(Creator(Base)?|Plugin)?|Error|Field|Index|Query(Model)?|Record|Relation|Relational(Delegate|TableModel)|Result|TableModel)|Stack(ed(Layout|Widget))?|StandardItem(EditorCreator|Model)?|Status(Bar|TipEvent)|String(List(Model)?|Matcher)?|Style(Factory|HintReturn(Mask)?|Option(Button|ComboBox|Complex|DockWidget|FocusRect|Frame(V2)?|GraphicsItem|GroupBox|Header|MenuItem|ProgressBar(V2)?|Q3(DockWindow|ListView|ListViewItem)|RubberBand|SizeGrip|Slider|SpinBox|Tab(BarBase|V2|WidgetFrame)?|TitleBar|Tool(Bar|Box|Button)|ViewItem(V2)?)?|Painter|Plugin)?|Svg(Renderer|Widget)|SyntaxHighlighter|SysInfo|System(Locale|TrayIcon)|Tab(Bar|Widget)|Table(Widget(Item|SelectionRange)?|View)|TabletEvent|Tcp(Server|Socket)|TemporaryFile|TestEventList|Text(Block(Format|Group|UserData)?|Browser|CharFormat|Codec(Plugin)?|Cursor|(De|En)coder|Document(Fragment)?|Edit|Fragment|Frame(Format)?|(Image)?Format|InlineObject|Layout|Length|Line|List(Format)?|Object|Option|Stream|Table(Cell|Format)?)|Thread(Storage)?|Time(Edit|Line)?|Timer(Event)?|Tool(Bar|Box|Button|Tip)|TransformedScreen|Translator|Tree(Widget(Item(Iterator)?)?|View)|UdpSocket|UiLoader|Undo(Command|Group|Stack|View)|Url(Info)?|Uuid|VBoxLayout|(VNC|VFb)Screen|Validator|VarLengthArray|Variant|Vector(Iterator)?|WS(Client|EmbedWidget|Event|InputMethod|(Keyboard|(Tslib|Calibrated)?Mouse)Handler|PointerCalibrationData|ScreenSaver|Server|Window(Surface)?)|WaitCondition|WhatsThis(ClickedEvent)?|WheelEvent|Widget(Action|Item)?|Window(StateChangeEvent|sMime)|Workspace|WriteLocker|X11Embed(Container|Widget)|X11Info|Xml(Attributes|(Content|DTD|Decl|Default|Error|Lexical)Handler|EntityResolver|InputSource|Locator|NamespaceSupport|ParseException|Reader|SimpleReader))\b
20
+ - name: storage.type.qt
21
+ match: \b(q(int8|int16|int32|int64|longlong|real|uint8|uint16|uint32|uint64|ulonglong)|u(char|int|long|short))\b
22
+ - name: storage.modifier.qt
23
+ match: \b(slots|signals)\b
24
+ - include: source.c++
25
+ foldingStopMarker: (?<!\*)\*\*/|^\s*\}
26
+ keyEquivalent: ^~Q
@@ -0,0 +1,32 @@
1
+ ---
2
+ name: Quake Style .cfg
3
+ fileTypes:
4
+ - cfg
5
+ scopeName: source.quake-config
6
+ uuid: AAB8717E-6E5C-11D9-9BE0-0011242E4184
7
+ patterns:
8
+ - name: keyword.other.quake3
9
+ match: \b(set(a|u|s)?|bind|undbind|unbindall|vstr|exec|kill|say|say_team|quit|echo)(\s+\d)?\b
10
+ comment: the 2nd part of the regex is just to capture binds to number-keys and prevent them from getting highlighted as values.
11
+ - name: constant.numeric.quake3
12
+ match: \b\d+(\.\d+)?\b
13
+ - name: string.quoted.double.quake3
14
+ endCaptures:
15
+ "0":
16
+ name: punctuation.definition.string.end.quake3
17
+ begin: "\""
18
+ beginCaptures:
19
+ "0":
20
+ name: punctuation.definition.string.begin.quake3
21
+ end: "\""
22
+ patterns:
23
+ - name: constant.character.escape.quake3
24
+ match: \\.
25
+ - name: keyword.other.string-embedded.quake3
26
+ match: \b(set(a|u|s)?|bind|unbindall|vstr|exec|kill|say|say_team|quit|echo)\b
27
+ - name: comment.line.double-slash.quake3
28
+ captures:
29
+ "1":
30
+ name: punctuation.definition.comment.quake3
31
+ match: (//).*$\n?
32
+ keyEquivalent: ^~Q
@@ -0,0 +1,81 @@
1
+ ---
2
+ name: R
3
+ fileTypes:
4
+ - R
5
+ - r
6
+ - s
7
+ - S
8
+ - Rprofile
9
+ scopeName: source.r
10
+ uuid: B2E6B78D-6E70-11D9-A369-000D93B3A10E
11
+ foldingStartMarker: (\(\s*$|\{\s*$)
12
+ patterns:
13
+ - name: comment.line.number-sign.r
14
+ captures:
15
+ "1":
16
+ name: punctuation.definition.comment.r
17
+ match: (#).*$\n?
18
+ - name: storage.type.r
19
+ match: \b(logical|numeric|character|complex|matrix|array|data\.frame|list|factor)(?=\s*\()
20
+ - name: keyword.control.r
21
+ match: \b(function|if|break|next|repeat|else|for|return|switch|while|in|invisible)\b
22
+ - name: constant.numeric.r
23
+ match: \b((0(x|X)[0-9a-fA-F]*)|(([0-9]+\.?[0-9]*)|(\.[0-9]+))((e|E)(\+|-)?[0-9]+)?)(L|l|UL|ul|u|U|F|f|ll|LL|ull|ULL)?\b
24
+ - name: constant.language.r
25
+ match: \b(TRUE|FALSE|NULL|NA|Inf|NaN)\b
26
+ - name: support.constant.misc.r
27
+ match: \b(pi|letters|LETTERS|month\.abb|month\.name)\b
28
+ - name: keyword.operator.arithmetic.r
29
+ match: (\-|\+|\*|\/|%\/%|%%|%\*%|%in%|%o%|%x%|\^)
30
+ - name: keyword.operator.assignment.r
31
+ match: (=|<-|<<-|->|->>)
32
+ - name: keyword.operator.comparison.r
33
+ match: (==|!=|<>|<|>|<=|>=)
34
+ - name: keyword.operator.logical.r
35
+ match: (!|&{1,2}|[|]{1,2})
36
+ - name: keyword.other.r
37
+ match: (\.\.\.|\$|:|\~)
38
+ - name: string.quoted.double.r
39
+ endCaptures:
40
+ "0":
41
+ name: punctuation.definition.string.end.r
42
+ begin: "\""
43
+ beginCaptures:
44
+ "0":
45
+ name: punctuation.definition.string.begin.r
46
+ end: "\""
47
+ patterns:
48
+ - name: constant.character.escape.r
49
+ match: \\.
50
+ - name: string.quoted.single.r
51
+ endCaptures:
52
+ "0":
53
+ name: punctuation.definition.string.end.r
54
+ begin: "'"
55
+ beginCaptures:
56
+ "0":
57
+ name: punctuation.definition.string.begin.r
58
+ end: "'"
59
+ patterns:
60
+ - name: constant.character.escape.r
61
+ match: \\.
62
+ - name: meta.function.r
63
+ captures:
64
+ "1":
65
+ name: entity.name.function.r
66
+ "2":
67
+ name: keyword.operator.assignment.r
68
+ "3":
69
+ name: keyword.control.r
70
+ match: ([a-zA-Z._][a-zA-Z0-9._]*)\s*(<-)\s*(function)
71
+ - match: ([a-zA-Z._][a-zA-Z0-9._]*)\s*\(
72
+ - captures:
73
+ "1":
74
+ name: variable.parameter.r
75
+ "2":
76
+ name: keyword.operator.assignment.r
77
+ match: ([a-zA-Z._][a-zA-Z0-9._]*)\s*(=)(?=[^=])
78
+ - name: variable.other.r
79
+ match: \b([a-zA-Z._][a-zA-Z0-9._]*)\b
80
+ foldingStopMarker: (^\s*\)|^\s*\})
81
+ keyEquivalent: ^~R
@@ -0,0 +1,16 @@
1
+ ---
2
+ name: R Console
3
+ fileTypes: []
4
+
5
+ scopeName: source.r-console
6
+ uuid: F629C7F3-823B-4A4C-8EEE-9971490C5710
7
+ patterns:
8
+ - name: source.r.embedded.r-console
9
+ begin: "^> "
10
+ beginCaptures:
11
+ "0":
12
+ name: punctuation.section.embedded.r-console
13
+ end: \n|\z
14
+ patterns:
15
+ - include: source.r
16
+ keyEquivalent: ^~R
@@ -0,0 +1,201 @@
1
+ ---
2
+ name: Ragel
3
+ fileTypes:
4
+ - rl
5
+ - ragel
6
+ scopeName: source.c.ragel
7
+ repository:
8
+ regexp:
9
+ patterns:
10
+ - name: string.regexp.character-class.ragel
11
+ endCaptures:
12
+ "0":
13
+ name: punctuation.definition.string.end.ragel
14
+ begin: \[
15
+ beginCaptures:
16
+ "0":
17
+ name: punctuation.definition.string.begin.ragel
18
+ end: \]\s*[*?]?
19
+ - name: string.regexp.classic.ragel
20
+ endCaptures:
21
+ "0":
22
+ name: punctuation.definition.string.end.ragel
23
+ begin: \/
24
+ beginCaptures:
25
+ "0":
26
+ name: punctuation.definition.string.begin.ragel
27
+ end: \/\s*[*?]?
28
+ embedded_code:
29
+ patterns:
30
+ - name: source.c
31
+ begin: \{
32
+ beginCaptures:
33
+ "0":
34
+ name: punctuation.section.embedded.c
35
+ end: \}
36
+ patterns:
37
+ - include: source.c
38
+ comments:
39
+ patterns:
40
+ - name: comment.line.ragel
41
+ begin: "#"
42
+ beginCaptures:
43
+ "0":
44
+ name: punctuation.definition.comment.ragel
45
+ end: $\n?
46
+ action_name:
47
+ patterns:
48
+ - name: entity.name.type.action-reference.ragel
49
+ captures:
50
+ "1":
51
+ name: punctuation.definition.entity.ragel
52
+ match: ([@$>%])\s*([\w\d]+)
53
+ string_escaped_char:
54
+ patterns:
55
+ - name: constant.character.escape.ragel
56
+ match: \\(\\|[abefnprtv'"?]|[0-3]\d{,2}|[4-7]\d?|x[a-fA-F0-9]{,2})
57
+ - name: invalid.illegal.unknown-escape.ragel
58
+ match: \\.
59
+ operators:
60
+ patterns:
61
+ - name: keyword.operator.contatenation.ragel
62
+ match: (\:\>\>?|\<\:)
63
+ source_ragel:
64
+ patterns:
65
+ - include: "#keywords"
66
+ - include: "#regexp"
67
+ - include: "#string"
68
+ - include: "#comments"
69
+ - include: "#embedded_code"
70
+ - name: meta.function.action.ragel
71
+ endCaptures:
72
+ "1":
73
+ name: punctuation.section.function.ragel
74
+ begin: (action)\s+([\w\d]+)\s+({)
75
+ beginCaptures:
76
+ "1":
77
+ name: keyword.other.action.ragel
78
+ "2":
79
+ name: entity.name.type.action.ragel
80
+ "3":
81
+ name: punctuation.section.function.ragel
82
+ end: (})
83
+ patterns:
84
+ - include: source.c
85
+ - name: meta.machine-definition.ragel
86
+ endCaptures:
87
+ "1":
88
+ name: punctuation.terminator.machine-definition.ragel
89
+ begin: ([\w\d]+)\s*(=)
90
+ beginCaptures:
91
+ "1":
92
+ name: entity.name.type.machine-definition.ragel
93
+ "2":
94
+ name: punctuation.separator.key-value.ragel
95
+ end: (;)
96
+ patterns:
97
+ - include: "#regexp"
98
+ - include: "#string"
99
+ - include: "#action_name"
100
+ - include: "#embedded_code"
101
+ - include: "#operators"
102
+ - include: "#comments"
103
+ - name: meta.machine-instantiation.ragel
104
+ endCaptures:
105
+ "1":
106
+ name: punctuation.terminator.machine-instantiation.ragel
107
+ begin: ([\w\d]+)\s*(:=)
108
+ beginCaptures:
109
+ "1":
110
+ name: entity.name.type.machine-instantiation.ragel
111
+ "2":
112
+ name: punctuation.separator.key-value.ragel
113
+ end: ;
114
+ patterns:
115
+ - include: "#regexp"
116
+ - include: "#string"
117
+ - include: "#action_name"
118
+ - include: "#embedded_code"
119
+ - include: "#operators"
120
+ - include: "#comments"
121
+ - name: meta.ragel.longest-match
122
+ begin: \|\*
123
+ end: \*\|
124
+ patterns:
125
+ - include: "#source_ragel"
126
+ string_placeholder:
127
+ patterns:
128
+ - name: constant.other.placeholder.ragel
129
+ match: "(?x)%\n\
130
+ \t\t\t\t\t\t(\\d+\\$)? # field (argument #)\n\
131
+ \t\t\t\t\t\t[#0\\- +']* # flags\n\
132
+ \t\t\t\t\t\t[,;:_]? # separator character (AltiVec)\n\
133
+ \t\t\t\t\t\t((-?\\d+)|\\*(-?\\d+\\$)?)? # minimum field width\n\
134
+ \t\t\t\t\t\t(\\.((-?\\d+)|\\*(-?\\d+\\$)?)?)? # precision\n\
135
+ \t\t\t\t\t\t(hh|h|ll|l|j|t|z|q|L|vh|vl|v|hv|hl)? # length modifier\n\
136
+ \t\t\t\t\t\t[diouxXDOUeEfFgGaACcSspn%] # conversion type\n\
137
+ \t\t\t\t\t"
138
+ - name: invalid.illegal.placeholder.ragel
139
+ match: "%"
140
+ string:
141
+ patterns:
142
+ - name: string.quoted.double.ragel
143
+ endCaptures:
144
+ "0":
145
+ name: punctuation.definition.string.end.ragel
146
+ begin: "\""
147
+ beginCaptures:
148
+ "0":
149
+ name: punctuation.definition.string.begin.ragel
150
+ end: "\""
151
+ patterns:
152
+ - include: "#string_escaped_char"
153
+ - include: "#string_placeholder"
154
+ - name: string.quoted.single.ragel
155
+ endCaptures:
156
+ "0":
157
+ name: punctuation.definition.string.end.ragel
158
+ begin: "'"
159
+ beginCaptures:
160
+ "0":
161
+ name: punctuation.definition.string.begin.ragel
162
+ end: "'"
163
+ patterns:
164
+ - include: "#string_escaped_char"
165
+ keywords:
166
+ patterns:
167
+ - name: keyword.other.ragel
168
+ match: \b(machine|action|context|include|variable|access|write|contained)\b
169
+ uuid: F1172666-F07C-4F6A-B07D-E1AD08DE2070
170
+ foldingStartMarker: "(?x)\n\
171
+ \t\t /\\*\\*(?!\\*)\n\
172
+ \t\t|^(?![^{]*?//|[^{]*?/\\*(?!.*?\\*/.*?\\{)).*?\\{\\s*($|//|/\\*(?!.*?\\*/.*\\S))\n\
173
+ \t"
174
+ patterns:
175
+ - name: source.ragel
176
+ captures:
177
+ "0":
178
+ name: punctuation.section.embedded.ragel
179
+ begin: "%%{"
180
+ end: "}%%"
181
+ patterns:
182
+ - include: "#source_ragel"
183
+ - name: source.ragel
184
+ begin: "%%$"
185
+ beginCaptures:
186
+ "0":
187
+ name: punctuation.section.embedded.ragel
188
+ end: $
189
+ patterns:
190
+ - include: "#source_ragel"
191
+ - name: support.function.ragel
192
+ begin: "%%"
193
+ beginCaptures:
194
+ "0":
195
+ name: punctuation.section.embedded.ragel
196
+ end: $
197
+ patterns:
198
+ - include: "#keywords"
199
+ - include: source.c
200
+ foldingStopMarker: (?<!\*)\*\*/|^\s*\}
201
+ keyEquivalent: ^~R