Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

no more syntax worries, this all elongs to textpow now

  • Loading branch information...
commit f4540fcad7f4fd4db3b46c3f53d989c6abc12d9f 1 parent 13d1f0e
@grosser authored
Showing with 5 additions and 23,638 deletions.
  1. +1 −1  Gemfile
  2. +2 −2 Gemfile.lock
  3. +1 −6 README.rdoc
  4. +1 −1  lib/uv.rb
  5. +0 −9 spec/ultraviolet_spec.rb
  6. +0 −97 syntax/actionscript.syntax
  7. +0 −276 syntax/active4d.syntax
  8. +0 −311 syntax/active4d_html.syntax
  9. +0 −50 syntax/active4d_ini.syntax
  10. +0 −21 syntax/active4d_library.syntax
  11. +0 −33 syntax/ada.syntax
  12. +0 −151 syntax/antlr.syntax
  13. +0 −191 syntax/apache.syntax
  14. +0 −384 syntax/applescript.syntax
  15. +0 −70 syntax/asp.syntax
  16. +0 −129 syntax/asp_vb.net.syntax
  17. +0 −151 syntax/bibtex.syntax
  18. +0 −41 syntax/blog_html.syntax
  19. +0 −42 syntax/blog_markdown.syntax
  20. +0 −27 syntax/blog_text.syntax
  21. +0 −27 syntax/blog_textile.syntax
  22. +0 −543 syntax/broken/markdown.syntax
  23. +0 −1,253 syntax/broken/php.syntax
  24. +0 −74 syntax/buggy/nemerle.syntax
  25. +0 −53 syntax/build.syntax
  26. +0 −287 syntax/bulletin_board.syntax
  27. +0 −186 syntax/c++.syntax
  28. +0 −414 syntax/c.syntax
  29. +0 −55 syntax/cake.syntax
  30. +0 −36 syntax/camlp4.syntax
  31. +0 −32 syntax/cm.syntax
  32. +0 −216 syntax/coffeescript.syntax
  33. +0 −119 syntax/coldfusion.syntax
  34. +0 −176 syntax/context_free.syntax
  35. +0 −59 syntax/cs.syntax
  36. +0 −195 syntax/css.syntax
  37. +0 −1,925 syntax/css_experimental.syntax
  38. +0 −68 syntax/csv.syntax
  39. +0 −142 syntax/d.syntax
  40. +0 −81 syntax/diff.syntax
  41. +0 −204 syntax/dokuwiki.syntax
  42. +0 −47 syntax/dot.syntax
  43. +0 −43 syntax/doxygen.syntax
  44. +0 −62 syntax/dylan.syntax
  45. +0 −78 syntax/eiffel.syntax
  46. +0 −922 syntax/erlang.syntax
  47. +0 −80 syntax/f-script.syntax
  48. +0 −141 syntax/fortran.syntax
  49. +0 −142 syntax/fxscript.syntax
  50. +0 −34 syntax/greasemonkey.syntax
  51. +0 −83 syntax/gri.syntax
  52. +0 −191 syntax/groovy.syntax
  53. +0 −22 syntax/gtd.syntax
  54. +0 −143 syntax/gtdalt.syntax
  55. +0 −88 syntax/haml.syntax
  56. +0 −88 syntax/haskell.syntax
  57. +0 −27 syntax/html-asp.syntax
  58. +0 −362 syntax/html.syntax
  59. +0 −36 syntax/html_django.syntax
  60. +0 −424 syntax/html_for_asp.net.syntax
  61. +0 −119 syntax/html_mason.syntax
  62. +0 −40 syntax/html_rails.syntax
  63. +0 −26 syntax/html_tcl.syntax
  64. +0 −32 syntax/icalendar.syntax
  65. +0 −48 syntax/inform.syntax
  66. +0 −55 syntax/ini.syntax
  67. +0 −77 syntax/installer_distribution_script.syntax
  68. +0 −81 syntax/io.syntax
  69. +0 −211 syntax/java.syntax
  70. +0 −20 syntax/javaproperties.syntax
  71. +0 −256 syntax/javascript.syntax
  72. +0 −72 syntax/javascript_+_prototype.syntax
  73. +0 −140 syntax/javascript_+_prototype_bracketed.syntax
  74. +0 −114 syntax/jquery_javascript.syntax
  75. +0 −136 syntax/json.syntax
  76. +0 −708 syntax/languagedefinition.syntax
  77. +0 −566 syntax/latex.syntax
  78. +0 −41 syntax/latex_beamer.syntax
  79. +0 −50 syntax/latex_log.syntax
  80. +0 −64 syntax/latex_memoir.syntax
  81. +0 −219 syntax/lexflex.syntax
  82. +0 −54 syntax/lighttpd.syntax
  83. +0 −492 syntax/lilypond.syntax
  84. +0 −61 syntax/lisp.syntax
  85. +0 −24 syntax/literate_haskell.syntax
  86. +0 −29 syntax/logo.syntax
  87. +0 −152 syntax/logtalk.syntax
  88. +0 −86 syntax/lua.syntax
  89. +0 −142 syntax/m.syntax
  90. +0 −163 syntax/macports_portfile.syntax
  91. +0 −118 syntax/mail.syntax
  92. +0 −36 syntax/makefile.syntax
  93. +0 −17 syntax/man.syntax
  94. +0 −567 syntax/mediawiki.syntax
  95. +0 −92 syntax/mel.syntax
  96. +0 −66 syntax/mips.syntax
  97. +0 −50 syntax/mod_perl.syntax
  98. +0 −47 syntax/modula-3.syntax
  99. +0 −189 syntax/moinmoin.syntax
  100. +0 −572 syntax/mootools.syntax
  101. +0 −162 syntax/movable_type.syntax
  102. +0 −39 syntax/multimarkdown.syntax
  103. +0 −18 syntax/objective-c++.syntax
  104. +0 −233 syntax/objective-c.syntax
  105. +0 −764 syntax/ocaml.syntax
  106. +0 −167 syntax/ocamllex.syntax
  107. +0 −184 syntax/ocamlyacc.syntax
  108. +0 −160 syntax/old/YAML.yaml
  109. +0 −139 syntax/old/txt2tags.yaml
  110. +0 −14 syntax/opengl.syntax
  111. +0 −77 syntax/pascal.syntax
  112. +0 −1,113 syntax/perl.syntax
  113. +0 −32 syntax/plain_text.syntax
  114. +0 −113 syntax/pmwiki.syntax
  115. +0 −114 syntax/postscript.syntax
  116. +0 −106 syntax/processing.syntax
  117. +0 −40 syntax/prolog.syntax
  118. +0 −635 syntax/property_list.syntax
  119. +0 −868 syntax/python.syntax
  120. +0 −21 syntax/python_django.syntax
  121. +0 −114 syntax/qmake_project.syntax
  122. +0 −26 syntax/qt_c++.syntax
  123. +0 −32 syntax/quake3_config.syntax
  124. +0 −81 syntax/r.syntax
  125. +0 −16 syntax/r_console.syntax
  126. +0 −201 syntax/ragel.syntax
  127. +0 −91 syntax/rd_r_documentation.syntax
  128. +0 −50 syntax/regexp.syntax
  129. +0 −107 syntax/regular_expressions_oniguruma.syntax
  130. +0 −109 syntax/regular_expressions_python.syntax
  131. +0 −46 syntax/release_notes.syntax
  132. +0 −253 syntax/remind.syntax
  133. +0 −250 syntax/restructuredtext.syntax
  134. +0 −80 syntax/rez.syntax
Sorry, we could not display the entire diff because it was too big.
View
2  Gemfile
@@ -1,7 +1,7 @@
source :rubygems
gem 'oniguruma', :platform => :ruby_18
-gem 'textpow1x'
+gem 'textpow1x', '>=1'
group :dev do
gem 'rake', '0.8.7'
View
4 Gemfile.lock
@@ -13,7 +13,7 @@ GEM
rspec-expectations (2.6.0)
diff-lcs (~> 1.1.2)
rspec-mocks (2.6.0)
- textpow1x (0.11.0)
+ textpow1x (1.0.0)
plist (>= 3.0.1)
PLATFORMS
@@ -23,4 +23,4 @@ DEPENDENCIES
oniguruma
rake (= 0.8.7)
rspec
- textpow1x
+ textpow1x (>= 1)
View
7 README.rdoc
@@ -2,7 +2,7 @@
Fixed version of the Ultraviolet syntax highlighting gem.
* works on Ruby18 and Ruby19
- * more syntaxes then {spox}[https://github.com/spox/ultraviolet]
+ * more syntaxes then {spox}[https://github.com/spox/ultraviolet] through [textpow1x](https://github.com/grosser/textpow)
* lots of other bugfixes
* http://ultraviolet.rubyforge.org
@@ -11,11 +11,6 @@ Fixed version of the Ultraviolet syntax highlighting gem.
gem install ultraviolet
-== TODO
- * repair markdown
- * repair PHP
-
-
= Etc.
For original ultraviolet information, see README.txt
View
2  lib/uv.rb
@@ -10,7 +10,7 @@ class << self
attr_accessor :render_path, :theme_path, :syntax_path, :default_style, :syntaxes
end
- self.syntax_path = File.join(File.dirname(__FILE__), '..', 'syntax')
+ self.syntax_path = Textpow.syntax_path
self.render_path = File.join(File.dirname(__FILE__), '..', 'render')
self.theme_path = File.join(render_path, 'xhtml', 'files', 'css')
self.default_style = 'mac_classic'
View
9 spec/ultraviolet_spec.rb
@@ -10,13 +10,4 @@
STDERR.stub!(:puts) # silence
Uv.debug('', 'css').is_a?(Textpow::DebugProcessor).should == true
end
-
- describe "syntax" do
- Dir['syntax/*.syntax'].each do |syntax|
- it "#{syntax} can parse" do
- node = Textpow::SyntaxNode.load(syntax)
- node.parse("xxx\n1 + 1\n### xxx")
- end
- end
- end
end
View
97 syntax/actionscript.syntax
@@ -1,97 +0,0 @@
----
-name: ActionScript
-fileTypes:
-- as
-scopeName: source.actionscript
-uuid: E5A6EC91-6EE4-11D9-BAB4-000D93589AF6
-foldingStartMarker: (/\*\*|\{\s*$)
-patterns:
-- name: support.class.actionscript
- match: \b(R(ecordset|DBMSResolver|adioButton(Group)?)|X(ML(Socket|Node|Connector)?|UpdateResolverDataHolder)|M(M(Save|Execute)|icrophoneMicrophone|o(use|vieClip(Loader)?)|e(nu(Bar)?|dia(Controller|Display|Playback))|ath)|B(yName|inding|utton)|S(haredObject|ystem|crollPane|t(yleSheet|age|ream)|ound|e(ndEvent|rviceObject)|OAPCall|lide)|N(umericStepper|et(stream|S(tream|ervices)|Connection|Debug(Config)?))|C(heckBox|o(ntextMenu(Item)?|okie|lor|m(ponentMixins|boBox))|ustomActions|lient|amera)|T(ypedValue|ext(Snapshot|Input|F(ield|ormat)|Area)|ree|AB)|Object|D(ownload|elta(Item|Packet)?|at(e(Chooser|Field)?|a(G(lue|rid)|Set|Type)))|U(RL|TC|IScrollBar)|P(opUpManager|endingCall|r(intJob|o(duct|gressBar)))|E(ndPoint|rror)|Video|Key|F(RadioButton|GridColumn|MessageBox|BarChart|S(croll(Bar|Pane)|tyleFormat|plitView)|orm|C(heckbox|omboBox|alendar)|unction|T(icker|ooltip(Lite)?|ree(Node)?)|IconButton|D(ataGrid|raggablePane)|P(ieChart|ushButton|ro(gressBar|mptBox))|L(i(stBox|neChart)|oadingBox)|AdvancedMessageBox)|W(indow|SDLURL|ebService(Connector)?)|L(ist|o(calConnection|ad(er|Vars)|g)|a(unch|bel))|A(sBroadcaster|cc(ordion|essibility)|S(Set(Native|PropFlags)|N(ew|ative)|C(onstructor|lamp(2)?)|InstanceOf)|pplication|lert|rray))\b
-- name: support.function.actionscript
- match: \b(s(h(ift|ow(GridLines|Menu|Border|Settings|Headers|ColumnHeaders|Today|Preferences)?|ad(ow|ePane))|c(hema|ale(X|Mode|Y|Content)|r(oll(Track|Drag)?|een(Resolution|Color|DPI)))|t(yleSheet|op(Drag|A(nimation|llSounds|gent))?|epSize|a(tus|rt(Drag|A(nimation|gent))?))|i(n|ze|lence(TimeOut|Level))|o(ngname|urce|rt(Items(By)?|On(HeaderRelease)?|able(Columns)?)?)|u(ppressInvalidCalls|bstr(ing)?)|p(li(ce|t)|aceCol(umnsEqually|lumnsEqually))|e(nd(DefaultPushButtonEvent|AndLoad)?|curity|t(R(GB|o(otNode|w(Height|Count))|esizable(Columns)?|a(nge|te))|G(ain|roupName)|X(AxisTitle)?|M(i(n(imum|utes)|lliseconds)|o(nth(Names)?|tionLevel|de)|ultilineMode|e(ssage|nu(ItemEnabled(At)?|EnabledAt)|dia)|a(sk|ximum))|B(u(tton(s|Width)|fferTime)|a(seTabIndex|ndwidthLimit|ckground))|S(howAsDisabled|croll(ing|Speed|Content|Target|P(osition|roperties)|barState|Location)|t(yle(Property)?|opOnFocus|at(us|e))|i(ze|lenceLevel)|ort(able(Columns)?|Function)|p(litterBarPosition|acing)|e(conds|lect(Multiple|ion(Required|Type)?|Style|Color|ed(Node(s)?|Cell|I(nd(ices|ex)|tem(s)?))?|able))|kin|m(oothness|allScroll))|H(ighlight(s|Color)|Scroll|o(urs|rizontal)|eader(Symbol|Height|Text|Property|Format|Width|Location)?|as(Shader|CloseBox))|Y(ear|AxisTitle)?|N(ode(Properties|ExpansionHandler)|ewTextFormat)|C(h(ildNodes|a(ngeHandler|rt(Title|EventHandler)))|o(ntent(Size)?|okie|lumns)|ell(Symbol|Data)|l(i(ckHandler|pboard)|oseHandler)|redentials)|T(ype(dVaule)?|i(tle(barHeight)?|p(Target|Offset)?|me(out(Handler)?)?)|oggle|extFormat|ransform)|I(s(Branch|Open)|n(terval|putProperty)|con(SymbolName)?|te(rator|m(ByKey|Symbol)))|Orientation|D(i(splay(Range|Graphics|Mode|Clip|Text|edMonth)|rection)|uration|e(pth(Below|To|Above)|fault(GatewayURL|Mappings|NodeIconSymbolName)|l(iveryMode|ay)|bug(ID)?)|a(yOfWeekNames|t(e(Filter)?|a(Mapping(s)?|Item(Text|Property|Format)|Provider|All(Height|Property|Format|Width))?))|ra(wConnectors|gContent))|U(se(Shadow|HandCursor|EchoSuppression|rInput|Fade)|TC(M(i(nutes|lliseconds)|onth)|Seconds|Hours|Date|FullYear))|P(osition|ercentComplete|an(e(M(inimumSize|aximumSize)|Size|Title))?|ro(pert(y(Data)?|iesAt)|gress))|E(nabled|dit(Handler|able)|xpand(NodeTrigger|erSymbolName))|V(Scroll|olume|alue(Source)?)|KeyFrameInterval|Quality|F(i(eld|rst(DayOfWeek|VisibleNode))|ocus|ullYear|ps|ade(InLength|OutLength)|rame(Color|Width))|Width|L(ine(Color|Weight)|o(opback|adTarget)|a(rgeScroll|bel(Source|Placement)?))|A(s(Boolean|String|Number)|n(yTypedValue|imation)|ctiv(e(State(Handler)?|Handler)|ateHandler)|utoH(ideScrollBar|eight)))?|paratorBefore|ek|lect(ion(Disabled|Unfocused)?|ed(Node(s)?|Child|I(nd(ices|ex)|tem(s)?)|Dat(e|a))?|able(Ranges)?)|rver(String)?)|kip|qrt|wapDepths|lice|aveToSharedObj|moothing)|h(scroll(Policy)?|tml(Text)?|i(t(Test(TextNearPos)?|Area)|de(BuiltInItems|Child)?|ghlight(2D|3D)?)|orizontal|e(ight|ader(Re(nderer|lease)|Height|Text))|P(osition|ageScrollSize)|a(s(childNodes|MP3|S(creen(Broadcast|Playback)|treaming(Video|Audio)|ort)|Next|OwnProperty|Pr(inting|evious)|EmbeddedVideo|VideoEncoder|A(ccesibility|udio(Encoder)?))|ndlerName)|LineScrollSize)|ye(sLabel|ar)|n(o(t|de(Name|Close|Type|Open|Value)|Label)|u(llValue|mChild(S(creens|lides)|ren|Forms))|e(w(Item|line|Value|LocationDialog)|xt(S(cene|ibling|lide)|TabIndex|Value|Frame)?)?|ame(s)?)|c(h(ildNodes|eck|a(nge(sPending)?|r(CodeAt|At))|r)|o(s|n(st(ant|ructor)|nect|c(urrency|at)|t(ent(Type|Path)?|ains|rol(Placement|lerPolicy))|denseWhite|version)|py|l(or|umn(Stretch|Name(s)?|Count))|m(p(onent|lete)|ment))|u(stomItems|ePoint(s)?|r(veTo|Value|rent(Slide|ChildSlide|Item|F(ocused(S(creen|lide)|Form)|ps))))|e(il|ll(Renderer|Press|Edit|Focus(In|Out)))|l(i(ck|ents)|o(se(Button|Pane)?|ne(Node)?)|ear(S(haredObjects|treams)|Timeout|Interval)?)|a(ncelLabel|tch|p(tion|abilities)|l(cFields|l(e(e|r))?))|reate(GatewayConnection|Menu|Se(rver|gment)|C(hild(AtDepth)?|l(ient|ass(ChildAtDepth|Object(AtDepth)?))|all)|Text(Node|Field)|Item|Object(AtDepth)?|PopUp|E(lement|mptyMovieClip)))|t(h(is|row)|ype(of|Name)?|i(tle(StyleDeclaration)?|me(out)?)|o(talTime|String|olTipText|p|UpperCase|ggle(HighQuality)?|Lo(caleString|werCase))|e(st|llTarget|xt(RightMargin|Bold|S(ize|elected)|Height|Color|I(ndent|talic)|Disabled|Underline|F(ield|ont)|Width|LeftMargin|Align)?)|a(n|rget(Path)?|b(Stops|Children|Index|Enabled|leName))|r(y|igger|ac(e|k(AsMenu)?)))|i(s(Running|Branch|NaN|Con(soleOpen|nected)|Toggled|Installed|Open|D(own|ebugger)|P(urchased|ro(totypeOf|pertyEnumerable))|Empty|F(inite|ullyPopulated)|Local|Active)|n(s(tall|ertBefore)|cludeDeltaPacketInfo|t|it(ialize|Component|Pod|A(pplication|gent))?|de(nt|terminate|x(InParent(Slide|Form)?|Of)?)|put|validate|finity|LocalInternetCache)?|con(F(ield|unction))?|t(e(ratorScrolled|m(s|RollO(ut|ver)|ClassName))|alic)|d3|p|fFrameLoaded|gnore(Case|White))|o(s|n(R(ollO(ut|ver)|e(s(ize|ult)|l(ease(Outside)?|aseOutside)))|XML|Mouse(Move|Down|Up|Wheel)|S(ync|croller|tatus|oundComplete|e(tFocus|lect(edItem)?))|N(oticeEvent|etworkChange)|C(hanged|onnect|l(ipEvent|ose))|ID3|D(isconnect|eactivate|ata|ragO(ut|ver))|Un(install|load)|P(aymentResult|ress)|EnterFrame|K(illFocus|ey(Down|Up))|Fault|Lo(ad|g)|A(ctiv(ity|ate)|ppSt(op|art)))?|pe(n|ration)|verLayChildren|kLabel|ldValue|r(d)?)|d(i(s(connect|play(Normal|ed(Month|Year)|Full)|able(Shader|d(Ranges|Days)|CloseBox|Events))|rection)|o(cTypeDecl|tall|Decoding|main|LazyDecoding)|u(plicateMovieClip|ration)|e(stroy(ChildAt|Object)|code|fault(PushButton(Enabled)?|KeydownHandler)?|l(ta(Packet(Changed)?)?|ete(PopUp|All)?)|blocking)|a(shBoardSave|yNames|ta(Provider)?|rkshadow)|r(opdown(Width)?|a(w|gO(ut|ver))))|u(se(Sort|HandCursor|Codepage|EchoSuppression)|n(shift|install|derline|escape|format|watch|lo(ck|ad(Movie(Num)?)?))|pdate(Results|Mode|I(nputProperties|tem(ByIndex)?)|P(acket|roperties)|View|AfterEvent)|rl)|join|p(ixelAspectRatio|o(sition|p|w)|u(sh|rge|blish)|ercen(tComplete|Loaded)|lay(head(Change|Time)|ing|Hidden|erType)?|a(ssword|use|r(se(XML|CSS|Int|Float)|ent(Node|Is(S(creen|lide)|Form))|ams))|r(int(Num|AsBitmap(Num)?)?|o(to(type)?|pert(y|ies)|gress)|e(ss|v(ious(S(ibling|lide)|Value)?|Scene|Frame)|ferred(Height|Width))))|e(scape|n(code(r)?|ter(Frame)?|dFill|able(Shader|d|CloseBox|Events))|dit(able|Field|LocationDialog)|v(ent|al(uate)?)|q|x(tended|p|ec(ute)?|actSettings)|m(phasized(StyleDeclaration)?|bedFonts))|v(i(sible|ewPod)|ScrollPolicy|o(id|lume)|ersion|P(osition|ageScrollSize)|a(l(idat(ionError|e(Property|ActivationKey)?)|ue(Of)?)|riable)|LineScrollSize)|k(ind|ey(Down|Up|Press|FrameInterval))|q(sort|uality)|f(scommand|i(n(d(Text|First|Last)?|ally)|eldInfo|lter(ed|Func)?|rst(Slide|Child|DayOfWeek|VisibleNode)?)|o(nt|cus(In|edCell|Out|Enabled)|r(egroundDisabled|mat(ter)?))|unctionName|ps|l(oor|ush)|ace|romCharCode)|w(i(th|dth)|ordWrap|atch|riteAccess)|l(t|i(st(Owner)?|ne(Style|To))|o(c(k|a(t(ion|eByld)|l(ToGlobal|FileReadDisable)))|opback|ad(Movie(Num)?|S(crollContent|ound)|ed|Variables(Num)?|Application)?|g(Changes)?)|e(ngth|ft(Margin)?|ading)?|a(st(Slide|Child|Index(Of)?)?|nguage|b(el(Placement|F(ield|unction))?|leField)))|a(s(scociate(Controller|Display)|in|pectRatio|function)|nd|c(ceptConnection|tiv(ityLevel|ePlayControl)|os)|t(t(ach(Movie|Sound|Video|Audio)|ributes)|an(2)?)|dd(header|RequestHeader|Menu(Item(At)?|At)?|Sort|Header|No(tice|de(At)?)|C(olumn(At)?|uePoint)|T(oLocalInternetCache|reeNode(At)?)|I(con|tem(s(At)?|At)?)|DeltaItem|P(od|age|roperty)|EventListener|View|FieldInfo|Listener|Animation)?|uto(Size|Play|KeyNav|Load)|pp(endChild|ly(Changes|Updates)?)|vHardwareDisable|fterLoaded|l(ternateRowColors|ign|l(ow(InsecureDomain|Domain)|Transitions(InDone|OutDone))|bum)|r(tist|row|g(uments|List))|gent|bs)|r(ight(Margin)?|o(ot(S(creen|lide)|Form)|und|w(Height|Count)|llO(ut|ver))|e(s(yncDepth|t(orePane|artAnimation|rict)|iz(e|able(Columns)?)|olveDelta|ult(s)?|ponse)|c(o(ncile(Results|Updates)|rd)|eive(Video|Audio))|draw|jectConnection|place(Sel|ItemAt|AllItems)?|ve(al(Child)?|rse)|quest(SizeChange|Payment)?|f(errer|resh(ScrollContent|Destinations|Pane|FromSources)?)|lease(Outside)?|ad(Only|Access)|gister(SkinElement|C(olor(Style|Name)|lass)|InheritingStyle|Proxy)|move(Range|M(ovieClip|enu(Item(At)?|At))|Background|Sort|No(tice|de(sAt|At)?)|C(olum(nAt|At)|uePoints)|T(extField|reeNode(At)?)|Item(At)?|Pod|EventListener|FromLocalInternetCache|Listener|All(C(olumns|uePoints)|Items)?))|a(ndom|te|dioDot))|g(t|oto(Slide|NextSlide|PreviousSlide|FirstSlide|LastSlide|And(Stop|Play))|e(nre|t(R(GB|o(otNode|wCount)|e(sizable|mote))|X(AxisTitle)?|M(i(n(imum(Size)?|utes)|lliseconds)|onth(Names)?|ultilineMode|e(ssage|nu(ItemAt|EnabledAt|At))|aximum(Size)?)|B(ytes(Total|Loaded)|ounds|utton(s|Width)|eginIndex|a(ndwidthLimit|ckground))|S(howAsDisabled|croll(ing|Speed|Content|Position|barState|Location)|t(yle(Names)?|opOnFocus|ate)|ize|o(urce|rtState)|p(litterBarPosition|acing)|e(conds|lect(Multiple|ion(Required|Type)|Style|ed(Node(s)?|Cell|Text|I(nd(ices|ex)|tem(s)?))?)|rvice)|moothness|WFVersion)|H(ighlight(s|Color)|ours|e(ight|ader(Height|Text|Property|Format|Width|Location)?)|as(Shader|CloseBox))|Y(ear|AxisTitle)?|N(o(tices|de(DisplayedAt|At))|um(Children|berAvailable)|e(wTextFormat|xtHighestDepth))|C(h(ild(S(creen|lide)|Nodes|Form|At)|artTitle)|o(n(tent|figInfo)|okie|de|unt|lumn(Names|Count|Index|At))|uePoint|ellIndex|loseHandler|a(ll|retIndex))|T(ypedValue|i(tle(barHeight)?|p(Target|Offset)?|me(stamp|zoneOffset|out(State|Handler)|r)?)|oggle|ext(Extent|Format)?|r(ee(NodeAt|Length)|ans(form|actionId)))|I(s(Branch|Open)|n(stanceAtDepth|d(icesByKey|exByKey))|con(SymbolName)?|te(rator|m(sByKey|By(Name|Key)|id|ID|At))|d)|O(utput(Parameter(s|ByName)?|Value(s)?)|peration|ri(entation|ginalCellData))|D(i(s(play(Range|Mode|Clip|Index|edMonth)|kUsage)|rection)|uration|e(pth|faultNodeIconSymbolName|l(taPacket|ay)|bug(Config|ID)?)|a(y(OfWeekNames)?|t(e|a(Mapping(s)?|Item(Text|Property|Format)|Label|All(Height|Property|Format|Width))?))|rawConnectors)|U(se(Shadow|HandCursor|rInput|Fade)|RL|TC(M(i(nutes|lliseconds)|onth)|Seconds|Hours|Da(y|te)|FullYear))|P(o(sition|ds)|ercentComplete|a(n(e(M(inimums|aximums)|Height|Title|Width))?|rentNode)|r(operty(Name|Data)?|efer(ences|red(Height|Width))))|E(n(dIndex|abled)|ditingData|x(panderSymbolName|andNodeTrigger))|V(iewed(Pods|Applications)|olume|ersion|alue(Source)?)|F(i(eld|rst(DayOfWeek|VisibleNode))|o(ntList|cus)|ullYear|ade(InLength|OutLength)|rame(Color|Width))|Width|L(ine(Color|Weight)|o(cal|adTarget)|ength|a(stTabIndex|bel(Source)?))|A(s(cii|Boolean|String|Number)|n(yTypedValue|imation)|ctiv(eState(Handler)?|ateHandler)|utoH(ideScrollBar|eight)|llItems|gent))?)?|lobal(StyleFormat|ToLocal)?|ain|roupName)|x(updatePackety|mlDecl)?|m(y(MethodName|Call)|in(imum)?|o(nthNames|tion(TimeOut|Level)|de(lChanged)?|use(Move|O(ut|ver)|Down(Somewhere|Outside)?|Up(Somewhere)?|WheelEnabled)|ve(To)?)|u(ted|lti(pleS(imultaneousAllowed|elections)|line))|e(ssage|nu(Show|Hide)?|th(od)?|diaType)|a(nufacturer|tch|x(scroll|hscroll|imum|HPosition|Chars|VPosition)?)|b(substring|chr|ord|length))|b(ytes(Total|Loaded)|indFormat(Strings|Function)|o(ttom(Scroll)?|ld|rder(Color)?)|u(tton(Height|Width)|iltInItems|ffer(Time|Length)|llet)|e(foreApplyUpdates|gin(GradientFill|Fill))|lockIndent|a(ndwidth|ckground(Style|Color|Disabled)?)|roadcastMessage)|onHTTPStatus)\b
-- name: support.constant.actionscript
- match: \b(__proto__|__resolve|_accProps|_alpha|_changed|_currentframe|_droptarget|_flash|_focusrect|_framesloaded|_global|_height|_highquality|_level|_listeners|_lockroot|_name|_parent|_quality|_root|_rotation|_soundbuftime|_target|_totalframes|_url|_visible|_width|_x|_xmouse|_xscale|_y|_ymouse|_yscale)\b
-- name: keyword.control.actionscript
- match: \b(dynamic|extends|import|implements|interface|public|private|new|static|super|var|for|in|break|continue|while|do|return|if|else|case|switch)\b
-- name: storage.type.actionscript
- match: \b(Boolean|Number|String|Void)\b
-- name: constant.language.actionscript
- match: \b(null|undefined|true|false)\b
-- name: constant.numeric.actionscript
- 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)?\b
-- name: string.quoted.double.actionscript
- endCaptures:
- "0":
- name: punctuation.definition.string.end.actionscript
- begin: "\""
- beginCaptures:
- "0":
- name: punctuation.definition.string.begin.actionscript
- end: "\""
- patterns:
- - name: constant.character.escape.actionscript
- match: \\.
-- name: string.quoted.single.actionscript
- endCaptures:
- "0":
- name: punctuation.definition.string.end.actionscript
- begin: "'"
- beginCaptures:
- "0":
- name: punctuation.definition.string.begin.actionscript
- end: "'"
- patterns:
- - name: constant.character.escape.actionscript
- match: \\.
-- name: support.constant.actionscript
- match: \b(BACKSPACE|CAPSLOCK|CONTROL|DELETEKEY|DOWN|END|ENTER|HOME|INSERT|LEFT|LN10|LN2|LOG10E|LOG2E|MAX_VALUE|MIN_VALUE|NEGATIVE_INFINITY|NaN|PGDN|PGUP|PI|POSITIVE_INFINITY|RIGHT|SPACE|SQRT1_2|SQRT2|UP)\b
-- name: comment.block.actionscript
- captures:
- "0":
- name: punctuation.definition.comment.actionscript
- begin: /\*
- end: \*/
-- name: comment.line.double-slash.actionscript
- captures:
- "1":
- name: punctuation.definition.comment.actionscript
- match: (//).*$\n?
-- name: keyword.operator.actionscript
- match: \b(instanceof)\b
-- name: keyword.operator.symbolic.actionscript
- match: "[-!%&*+=/?:]"
-- name: meta.preprocessor.actionscript
- captures:
- "1":
- name: punctuation.definition.preprocessor.actionscript
- match: ^[ \t]*(#)[a-zA-Z]+
-- name: meta.function.actionscript
- endCaptures:
- "0":
- name: punctuation.definition.parameters.end.actionscript
- captures:
- "1":
- name: storage.type.function.asp
- "2":
- name: entity.name.function.asp
- "3":
- name: punctuation.definition.parameters.begin.actionscript
- begin: \b(function)\s+([a-zA-Z_]\w*)\s*(\()
- end: \)
- patterns:
- - name: variable.parameter.function.asp
- match: "[^,)\\n]+"
-- name: meta.class.actionscript
- captures:
- "1":
- name: storage.type.class.actionscript
- "2":
- name: entity.name.type.class.actionscript
- "3":
- name: storage.modifier.extends.actionscript
- "4":
- name: entity.other.inherited-class.actionscript
- match: \b(class)\s+([a-zA-Z_](?:\w|\.)*)(?:\s+(extends)\s+([a-zA-Z_](?:\w|\.)*))?
-foldingStopMarker: (\*\*/|^\s*\})
-keyEquivalent: ^~A
View
276 syntax/active4d.syntax
@@ -1,276 +0,0 @@
----
-name: Active4D
-fileTypes: []
-
-scopeName: source.active4d
-repository:
- escaped_char:
- name: constant.character.escape.active4d
- match: \\.
- interpolated_variable:
- name: variable.other.interpolated.local.active4d
- captures:
- "1":
- name: punctuation.definition.variable.active4d
- match: (\$)[\w_]+({(".+?"|\d+|\$[\w_]+)})*(\[\[\d+\]\])*
- interpolated_table_field:
- name: variable.other.interpolated.table-field.active4d
- match: \[\w[\w_ ]*\][\w_]+(\[\[\d+\]\])*
- interpolated_string:
- patterns:
- - include: "#escaped_char"
- - include: "#interpolated_code"
- - include: "#interpolated_table_field"
- - include: "#interpolated_variable"
- - include: "#interpolated_collection_ref"
- interpolated_code:
- name: source.interpolated.active4d
- endCaptures:
- "0":
- name: punctuation.definition.string.end.active4d
- begin: "`"
- beginCaptures:
- "0":
- name: punctuation.definition.string.begin.active4d
- end: "`"
- patterns:
- - include: $self
- interpolated_collection_ref:
- name: variable.other.interpolated.collection-ref.active4d
- match: (_form|_query|_request|globals|session)({(".+?"|\d+|\$[\w_]+)})+(\[\[\d+\]\])*
- fusedoc:
- name: text.xml
- begin: (?=^\s*<fusedoc )
- end: (?<=</fusedoc>)
- patterns:
- - include: text.xml
-uuid: 8C2BF09D-AE95-479B-B516-F8DB62C86A0C
-foldingStartMarker: |-
- (?x)
- (^\s*(?i:if|while|for\ each|for|case\ of|repeat|method|save output)\b
- )
-patterns:
-- name: comment.line.backtick.active4d
- captures:
- "1":
- name: punctuation.definition.comment.active4d
- match: (`).*$\n?
-- name: comment.line.double-slash.active4d
- captures:
- "1":
- name: punctuation.definition.comment.active4d
- match: (//).*$\n?
-- name: comment.line.double-backslash.continuation.active4d
- captures:
- "1":
- name: punctuation.definition.comment.active4d
- match: (\\\\).*$\n?
-- name: comment.block.active4d
- captures:
- "0":
- name: punctuation.definition.comment.active4d
- begin: /\*
- end: \*/
- patterns:
- - include: "#fusedoc"
-- name: string.quoted.double.active4d
- endCaptures:
- "0":
- name: punctuation.definition.string.end.active4d
- begin: "\"(?!\"\")"
- beginCaptures:
- "0":
- name: punctuation.definition.string.begin.active4d
- end: "\""
- patterns:
- - include: "#escaped_char"
-- name: string.quoted.triple.heredoc.active4d
- endCaptures:
- "0":
- name: punctuation.definition.string.end.active4d
- begin: "\"\"\""
- beginCaptures:
- "0":
- name: punctuation.definition.string.begin.active4d
- end: "\"\"\""
- patterns:
- - include: "#escaped_char"
-- name: string.interpolated.quoted.single.active4d
- endCaptures:
- "0":
- name: punctuation.definition.string.end.active4d
- begin: "'(?!'')"
- beginCaptures:
- "0":
- name: punctuation.definition.string.begin.active4d
- end: "'"
- patterns:
- - include: "#interpolated_string"
-- name: string.interpolated.quoted.triple.heredoc.active4d
- endCaptures:
- "0":
- name: punctuation.definition.string.end.active4d
- begin: "'''"
- beginCaptures:
- "0":
- name: punctuation.definition.string.begin.active4d
- end: "'''"
- patterns:
- - include: "#interpolated_string"
-- name: constant.numeric.active4d
- match: (?<![[:alpha:]])[\-]?(?:0x[[:xdigit:]]{1,4}|\d+(\.\d+)?)(?![[:alpha:]])
-- name: constant.language.boolean.active4d
- match: \b(?i)(true|false)\b
-- name: variable.other.local.active4d
- captures:
- "1":
- name: punctuation.definition.variable.active4d
- match: (\$)[\w_]+
-- name: variable.other.interprocess.active4d
- captures:
- "1":
- name: punctuation.definition.variable.active4d
- match: (\<\>)[\w_]+
-- name: variable.other.table-field.active4d
- captures:
- "1":
- name: punctuation.definition.variable.active4d
- "2":
- name: punctuation.definition.variable.active4d
- match: (\[)[^\[].*?(\])([\w_ ]+)?
-- name: constant.other.date.active4d
- captures:
- "1":
- name: punctuation.definition.constant.active4d
- "2":
- name: punctuation.definition.constant.active4d
- match: (!)\d{1,2}/\d{1,2}/\d{2,4}(!)
-- name: constant.other.time.active4d
- captures:
- "1":
- name: punctuation.definition.constant.active4d
- "2":
- name: punctuation.definition.constant.active4d
- match: (\?)\d{1,2}:\d{1,2}:\d{1,2}(\?)
-- name: meta.function.active4d
- captures:
- "1":
- name: storage.type.function.active4d
- "2":
- name: entity.name.function.active4d
- match: ^\s*(method)\s*("[^"]+")(?!\s*\()
- comment: method definition without parameters
-- name: meta.function.active4d
- endCaptures:
- "1":
- name: punctuation.definition.parameters.active4d
- begin: ^\s*(method)\s*((")[^"]+("))\s*(\()
- beginCaptures:
- "1":
- name: storage.type.function.active4d
- "2":
- name: entity.name.function.active4d
- "3":
- name: punctuation.definition.entity.active4d
- "4":
- name: punctuation.definition.entity.active4d
- "5":
- name: punctuation.definition.parameters.active4d
- end: (\))\s*(?:(?:\\\\|//|`).*)?$
- patterns:
- - name: variable.parameter.function.active4d
- captures:
- "1":
- name: keyword.operator.active4d
- "2":
- name: punctuation.definition.variable.active4d
- "3":
- name: punctuation.separator.parameters.active4d
- match: (&)?(\$)[\w_]+(;)?
- - endCaptures:
- "1":
- name: punctuation.separator.parameters.active4d
- begin: (=)
- beginCaptures:
- "1":
- name: punctuation.separator.key-value.active4d
- end: (;)|(?=\))
- patterns:
- - include: $self
- comment: method definition with parameters
-- name: keyword.operator.active4d
- match: |-
- (?x) (
- :=
- | \+=
- | \-=
- | /=
- | \\=
- | \*=
- | \%=
- | \^=
- | &=
- | \|=
- | <<=
- | >>=
- | >
- | <
- | >=
- | <=
- | =
- | =~
- | \#
- | \#~
- | ~
- | !~
- | \+
- | \+\+
- | \-
- | \-\-
- | /
- | \\
- | \*
- | \*\+
- | \*/
- | %
- | &
- | \|
- | \^
- | \^\|
- | <<
- | >>
- | \?\+
- | \?\-
- | \?\?
- | \}
- | \{
- | ;
- | \:
- | \]\]
- | \[\[
- | \->)
-- name: keyword.control.active4d
- match: \b(?i)(end (if|for each|for|while|case)|if|else|while|for each|for|case of|repeat|until|break|continue)\b
-- name: keyword.other.active4d
- match: \b(?i)(end method|method|define|return|exit|self|import|require|global|throw)\b
-- name: support.constant.active4d
- match: (?i)\b(Write Mode|Text without length|Text array|String array|Short|Real array|Read Mode|Read and Write|Pointer array|Picture array|No current record|New record|Month Day Year|MM DD YYYY Forced|MM DD YYYY|MAXTEXTLEN|MAXLONG|Longint array|Long|Line feed|Is Undefined|Is Time|Is Text|Is String Var|Is Real|Is Pointer|Is Picture|Is Longint|Is Integer|Is Date|Is Boolean|Is BLOB|Is Alpha Field|Into variable|Into set|Into named selection|Into current selection|Integer array|Hour Min Sec|Hour Min|HH MM SS|HH MM AM PM|HH MM|Get Pathname|Date array|Carriage return|Boolean array|Array 2D|Abbreviated|Abbr Month Day|A4D Parameter Mode Separate|A4D Parameter Mode Query|A4D Parameter Mode Form|A4D License Type Deployment|A4D Encoding Tags|A4D Encoding Quotes|A4D Encoding None|A4D Encoding HTML|A4D Encoding Extended|A4D Encoding Ampersand|A4D Encoding All|A4D Charset Win|A4D Charset Shift_JIS|A4D Charset Mac|A4D Charset ISO Latin1|A4D Charset GB2312)\b
-- name: support.function.active4d
- match: (?i)\b(_request|_query|_form|Year of|writep|writeln|writebr|write to console|write raw|write png|WRITE PICTURE FILE|write jpg|write jpeg|write gif|write blob|write|Win to Mac|week of year|variable name|VALIDATE TRANSACTION|utc to local time|utc to local datetime|USE SET|USE NAMED SELECTION|url to native path|url encode query|url encode path|url encode|url decode query|url decode path|url decode|Uppercase|unlock globals|UNLOAD RECORD|UNION|Undefined|type descriptor|Type|Trunc|True|trim|timestamp year|timestamp time|timestamp string|timestamp second|timestamp month|timestamp minute|timestamp millisecond|timestamp hour|timestamp difference|timestamp day|timestamp date|timestamp|time to longint|Time string|Time|Tickcount|throw|TEXT TO BLOB|Test semaphore|Test path name|Table name|Table|Substring|Structure file|STRING LIST TO ARRAY|String|START TRANSACTION|split string|SORT ARRAY|slice string|Size of array|set session timeout|set session array|set session|set script timeout|set response status|set response header|set response cookie path|set response cookie expires|set response cookie domain|set response cookie|set response buffer|SET QUERY LIMIT|SET QUERY DESTINATION|set platform charset|set output encoding|set output charset|set log level|set local|set global array|set global|set expires date|set expires|set error page|SET DOCUMENT POSITION|SET DEFAULT CENTURY|set current script timeout|set content type|set content charset|set collection array|set collection|set cache control|SET AUTOMATIC RELATIONS|set array|session to blob|session query|session local|session internal id|session id|session has|session|Sequence number|SEND PACKET|Semaphore|SELECTION TO ARRAY|SELECTION RANGE TO ARRAY|Selected record number|SCAN INDEX|save upload to field|SAVE RECORD|save output|save collection|Round|right trim|response headers|response cookies|response buffer size|RESOLVE POINTER|resize array|require|requested url|request query|request info|request cookies|Replace string|REMOVE FROM SET|RELATE ONE SELECTION|RELATE ONE|RELATE MANY SELECTION|RELATE MANY|regex split|regex replace|regex quote pattern|regex match all|regex match|regex find in array|regex find all in array|regex callback replace|REDUCE SELECTION|redirect|Records in table|Records in set|Records in selection|Record number|RECEIVE PACKET|READ WRITE|READ PICTURE FILE|Read only state|READ ONLY|random between|Random|QUERY WITH ARRAY|QUERY SELECTION BY FORMULA|QUERY SELECTION|query params has|query params|QUERY BY FORMULA|QUERY|PREVIOUS RECORD|Position|Picture size|PICTURE PROPERTIES|parameter mode|param text|ORDER BY FORMULA|ORDER BY|Open document|ONE RECORD SELECT|Num|Not|nil pointer|Nil|NEXT RECORD|next item|new local collection|new global collection|new collection|native to url path|multisort named arrays|multisort arrays|MOVE DOCUMENT|more items|Month of|min of|Milliseconds|method exists|merge collections|md5 sum|max of|Mac to Win|Mac to ISO|mac to html|Lowercase|longint to time|log message|Locked|lock globals|local variables|local time to utc|local datetime to utc|LOAD RECORD|load collection|LIST TO ARRAY|library list|Length|left trim|LAST RECORD|last of|last not of|join paths|join array|ISO to Mac|Is in set|is array|is an iterator|is a collection|INTERSECTION|interpolate string|Int|insert into array|INSERT ELEMENT|include into|include|in error|import|identical strings|hide session field|GOTO SELECTED RECORD|GOTO RECORD|globals has|globals|global|get version|get utc delta|get upload size|get upload remote filename|get upload extension|get upload encoding|get upload content type|get timestamp datetime|get time remaining|get session timeout|get session stats|get session names|get session item|get session array size|get session array|get session|get script timeout|get root|get response headers|get response header|get response cookies|get response cookie path|get response cookie expires|get response cookie domain|get response cookie|get response buffer|get request value|get request infos|get request info|get request cookies|get request cookie|get query params|get query param count|get query param choices|get query param|Get pointer|get platform charset|GET PICTURE FROM LIBRARY|get output encoding|get output charset|get log level|get local|get license info|get library list|get item value|get item type|get item key|get item array|Get indexed string|get global keys|get global item|get global array size|get global array|get global|get form variables|get form variable count|get form variable choices|get form variable|GET FIELD PROPERTIES|get field pointer|get field numbers|get expires date|get expires|get error page|Get document position|get current script timeout|get content type|get content charset|get collection keys|get collection item count|get collection item|get collection array size|get collection array|get collection|get call chain|get cache control|get auto relations|full requested url|form variables has|form variables|FOLDER LIST|FIRST RECORD|first of|first not of|Find index key|Find in array|fill array|filename of|file exists|Field name|Field|False|extension of|execute in 4d|EXECUTE|End selection|end save output|enclose|DOCUMENT TO BLOB|DOCUMENT LIST|DISTINCT VALUES|directory separator|directory of|directory exists|DIFFERENCE|Delete string|delete session item|DELETE SELECTION|delete response header|delete response cookie|DELETE RECORD|delete global|DELETE FOLDER|DELETE ELEMENT|DELETE DOCUMENT|delete collection item|DELAY PROCESS|defined|define|default directory|deep copy collection|deep clear collection|Dec|day of year|Day of|Day number|Date|C_TIME|C_TEXT|C_STRING|C_REAL|C_POINTER|C_PICTURE|C_LONGINT|C_DATE|C_BOOLEAN|C_BLOB|CUT NAMED SELECTION|Current time|current realm|Current process|current platform|current path|Current method name|current line number|current library name|current file|Current date|CREATE SET FROM ARRAY|CREATE SET|CREATE SELECTION FROM ARRAY|CREATE RECORD|CREATE FOLDER|CREATE EMPTY SET|Create document|count uploads|Count tables|count session items|count response headers|count response cookies|count request infos|count request cookies|count query params|Count in array|count globals|count form variables|Count fields|count collection items|copy upload|COPY SET|COPY NAMED SELECTION|COPY DOCUMENT|copy collection|COPY ARRAY|concat|compare strings|collection to blob|collection has|collection|CLOSE DOCUMENT|CLEAR VARIABLE|CLEAR SET|CLEAR SEMAPHORE|clear response buffer|CLEAR NAMED SELECTION|clear collection|clear buffer (deprecated)|clear array|choose|Char|cell|capitalize|CANCEL TRANSACTION|call method|call 4d method|build query string|blowfish encrypt|blowfish decrypt|BLOB to text|blob to session|BLOB TO DOCUMENT|blob to collection|BLOB size|Before selection|base64 encode|base64 decode|AUTOMATIC RELATIONS|auto relate|authenticate|auth user|auth type|auth password|Ascii|ARRAY TEXT|ARRAY STRING|ARRAY REAL|ARRAY POINTER|ARRAY PICTURE|ARRAY LONGINT|ARRAY INTEGER|ARRAY DATE|ARRAY BOOLEAN|append to array|Append document|ALL RECORDS|add to timestamp|ADD TO SET|Add to date|add element|Abs|abandon session|abandon response cookie)\b
- comment: 4D and Active4D commands
-- name: support.function.active4d
- match: (?i)\b((yearMonthDay|writeDumpStyles|writeBold|write|warnInvalidField|valueList|valueCountNoCase|valueCount|validPrice|validEmailAddress|validateTextFields|unlockAndLoad|truncateText|timedOut|sourceRowCount|sort|setTitle|setTimeout|setSMTPHost|setSMTPAuthorization|setSeparator|setRelateOne|setMailMethod|setDivId|setDefaults|setColumnData|setColumnArray|setAt|sendMail|sendFuseaction|saveFormToSession|rowCount|reverseArray|rest|qualify|previous|prepend|postHandleError|persistent|ordinalOf|nextID|next|newFromSelection|newFromRowSet|newFromFile|newFromData|newFromCachedSelection|newFromArrays|newFromArray|new|move|maxRows|makeURL|makeSafeMailto|makeLinks|makeFuseboxLinks|listToArray|len|last|isLast|isFuseboxRequest|isFirst|isBeforeFirst|isAfterLast|insertAt|hideUniqueField|hideField|handleError|gotoRow|getVariablesIterator|getUniqueID|getTitle|getTimeout|getStarts|getStart|getSMTPHost|getSMTPAuthUser|getSMTPAuthPassword|getSMTPAuthorization|getRow|getPointerReferent|getPictureDescriptor|getPersistentList|getMailMethod|getEnd|getEmptyFields|getDefaults|getData|getColumn|getAt|fuseboxNew|formVariableListToQuery|formatUSPhone|first|findRow|findNoCase|findColumn|find|filterCollection|embedVariables|embedQueryParams|embedFormVariables|embedFormVariableList|embedCollectionItems|embedCollection|dumpPersistent|dumpLib|dumpDefaults|dump session stats|dump session|dump selection|dump RowSet|dump request info|dump request|dump query params|dump locals|dump license info|dump form variables|dump collection|dump array|dump|deleteSelection|deleteAt|currentRow|core|containsNoCase|contains|columnCount|collectionToQuery|collectionItemsToQuery|clearPersistent|chopText|checkSession|checkboxState|changeDelims|camelCaseText|buildSelectValueMenu|buildSelectMenu|buildRecordList|buildOptionsFromSelection|buildOptionsFromRowSet|buildOptionsFromOptionList|buildOptionsFromOptionArray|buildOptionsFromLists|buildOptionsFromArrays|buildArrayValueList|buildArrayList|beforeFirst|articleFor|arrayToList|append|afterLast|addMetaTag|addJS|addJavascript|addDumpStyles|addCSS|add))\b
- comment: library methods
-- name: support.variable.active4d
- match: (?i)\b(OK|Document|fusebox\.conf\.fuseaction)\b
-- captures:
- "1":
- name: support.class.active4d
- "2":
- name: support.function.active4d
- match: (?<!\$)\b((?:a4d\.(?:console|debug|lists|utils|web)|Batch|Breadcrumbs|fusebox\.conf|fusebox\.head|fusebox|RowSet))\.([[:alpha:]][[[:alnum:]]_ ]+[[:alnum:]])
-foldingStopMarker: |-
- (?x)
- (^\s*(?i:end\ (if|while|for\ each|for|case|method|save output)|until)\b
- )
-keyEquivalent: ^~A
View
311 syntax/active4d_html.syntax
@@ -1,311 +0,0 @@
----
-name: HTML (Active4D)
-fileTypes:
-- a4d
-- a4p
-scopeName: text.html.strict.active4d
-repository:
- tag-stuff:
- patterns:
- - include: "#tag-id-attribute"
- - include: "#tag-generic-attribute"
- - include: "#string-double-quoted"
- - include: "#string-single-quoted"
- - include: "#embedded-code"
- string-double-quoted:
- name: string.quoted.double.html
- endCaptures:
- "0":
- name: punctuation.definition.string.end.html
- begin: "\""
- beginCaptures:
- "0":
- name: punctuation.definition.string.begin.html
- end: "\""
- patterns:
- - include: "#embedded-code"
- - include: "#entities"
- entities:
- patterns:
- - name: constant.character.entity.html
- captures:
- "1":
- name: punctuation.definition.entity.html
- "3":
- name: punctuation.terminator.entity.html
- match: (&)([a-zA-Z0-9]+|#[0-9]+|#x[0-9a-fA-F]+)(;)
- - name: invalid.illegal.bad-ampersand.html
- match: "&"
- embedded-js:
- patterns:
- - include: "#string-double-quoted-js"
- - include: "#string-single-quoted-js"
- - include: "#embedded-code"
- string-single-quoted:
- name: string.quoted.single.html
- endCaptures:
- "0":
- name: punctuation.definition.string.end.html
- begin: "'"
- beginCaptures:
- "0":
- name: punctuation.definition.string.begin.html
- end: "'"
- patterns:
- - include: "#embedded-code"
- - include: "#entities"
- tag-id-attribute:
- name: meta.attribute-with-value.id.html
- captures:
- "1":
- name: entity.other.attribute-name.id.html
- "2":
- name: punctuation.separator.key-value.html
- begin: \b(id)\b\s*(=)
- end: (?<='|")
- patterns:
- - name: string.quoted.double.html
- endCaptures:
- "0":
- name: punctuation.definition.string.end.html
- begin: "\""
- contentName: meta.toc-list.id.html
- beginCaptures:
- "0":
- name: punctuation.definition.string.begin.html
- end: "\""
- patterns:
- - include: "#embedded-code"
- - include: "#entities"
- - name: string.quoted.single.html
- endCaptures:
- "0":
- name: punctuation.definition.string.end.html
- begin: "'"
- contentName: meta.toc-list.id.html
- beginCaptures:
- "0":
- name: punctuation.definition.string.begin.html
- end: "'"
- patterns:
- - include: "#embedded-code"
- - include: "#entities"
- string-double-quoted-js:
- name: string.quoted.double.js
- endCaptures:
- "0":
- name: punctuation.definition.string.end.js
- begin: "\""
- beginCaptures:
- "0":
- name: punctuation.definition.string.begin.js
- end: "\""
- patterns:
- - include: "#embedded-code"
- tag-generic-attribute:
- name: entity.other.attribute-name.html
- match: \b([a-zA-Z-:]+)
- string-single-quoted-js:
- name: string.quoted.single.js
- endCaptures:
- "0":
- name: punctuation.definition.string.end.js
- begin: "'"
- beginCaptures:
- "0":
- name: punctuation.definition.string.begin.js
- end: "'"
- patterns:
- - include: "#embedded-code"
- embedded-code:
- name: source.active4d.embedded.html
- endCaptures:
- "0":
- name: punctuation.section.embedded.active4d
- begin: <%
- beginCaptures:
- "0":
- name: punctuation.section.embedded.active4d
- end: "%>"
- patterns:
- - include: source.active4d
-uuid: E666209C-4477-4D83-8B49-9463DFBACD9F
-foldingStartMarker: |-
- (?x)
- (<(?i:head|body|table|thead|tbody|tfoot|tr|div|select|fieldset|style|script|ul|ol|form|dl)\b.*?>
- |<!--(?!.*-->)
- |^\s*<%(?!.*%>)
- |(^\s*|<%\s*)(?i:if|while|for\ each|for|case\ of|repeat|method|save\ output)\b
- )
-patterns:
-- name: meta.tag.any.html
- endCaptures:
- "1":
- name: punctuation.definition.tag.html
- "2":
- name: meta.scope.between-tag-pair.html
- "3":
- name: entity.name.tag.html
- "4":
- name: punctuation.definition.tag.html
- begin: (<)([a-zA-Z0-9:]+)(?=[^>]*></\2>)
- beginCaptures:
- "1":
- name: punctuation.definition.tag.html
- "2":
- name: entity.name.tag.html
- end: (>(<)/)(\2)(>)
- patterns:
- - include: "#tag-stuff"
-- name: meta.tag.preprocessor.xml.html
- captures:
- "1":
- name: punctuation.definition.tag.xml.html
- "2":
- name: entity.name.tag.xml.html
- begin: (<\?)(xml)
- end: (\?>)
- patterns:
- - include: "#tag-generic-attribute"
- - include: "#string-double-quoted"
- - include: "#string-single-quoted"
-- name: comment.block.html
- captures:
- "0":
- name: punctuation.definition.comment.html
- begin: <!--
- end: -->
- patterns:
- - name: invalid.illegal.bad-comments-or-CDATA.html
- match: --
-- name: meta.tag.sgml.html
- captures:
- "0":
- name: punctuation.definition.tag.html
- begin: <!
- end: ">"
- patterns:
- - name: meta.tag.sgml.doctype.html
- captures:
- "1":
- name: entity.name.tag.doctype.html
- begin: (DOCTYPE)
- end: (?=>)
- patterns:
- - name: string.quoted.double.doctype.identifiers-and-DTDs.html
- match: "\"[^\">]*\""
- - name: constant.other.inline-data.html
- begin: \[CDATA\[
- end: "]](?=>)"
- - name: invalid.illegal.bad-comments-or-CDATA.html
- match: (\s*)(?!--|>)\S(\s*)
-- name: meta.tag.processor.html
- endCaptures:
- "0":
- name: punctuation.section.embedded.active4d
- "1":
- name: meta.scope.between-tag-pair.html
- begin: <%(?=%>)
- beginCaptures:
- "0":
- name: punctuation.section.embedded.active4d
- end: (%)>
- patterns:
- - include: "#embedded-code"
-- include: "#embedded-code"
-- name: source.css.embedded.html
- captures:
- "1":
- name: punctuation.definition.tag.html
- "2":
- name: entity.name.tag.style.html
- "3":
- name: punctuation.definition.tag.html
- begin: (?:^\s+)?(<)((?i:style))\b(?![^>]*/>)
- end: (</)((?i:style))(>)(?:\s*\n)?
- patterns:
- - include: "#tag-stuff"
- - begin: (>)
- beginCaptures:
- "1":
- name: punctuation.definition.tag.html
- end: (?=</(?i:style))
- patterns:
- - include: "#embedded-code"
- - include: source.css
-- name: source.js.embedded.html
- endCaptures:
- "1":
- name: entity.name.tag.script.html
- "2":
- name: punctuation.definition.tag.html
- begin: (?:^\s+)?(<)((?i:script))\b(?![^>]*/>)
- beginCaptures:
- "1":
- name: punctuation.definition.tag.html
- "2":
- name: entity.name.tag.script.html
- end: (?<=</(script|SCRIPT))(>)(?:\s*\n)?
- patterns:
- - include: "#tag-stuff"
- - captures:
- "1":
- name: punctuation.definition.tag.html
- begin: (?<!</(?:script|SCRIPT))(>)
- end: (</)((?i:script))
- patterns:
- - include: "#embedded-js"
- - include: source.js
-- name: meta.tag.structure.any.html
- captures:
- "1":
- name: punctuation.definition.tag.html
- "2":
- name: entity.name.tag.structure.any.html
- begin: (</?)((?i:body|head|html)\b)
- end: (>)
- patterns:
- - include: "#tag-stuff"
-- name: meta.tag.block.any.html
- captures:
- "1":
- name: punctuation.definition.tag.html
- "2":
- name: entity.name.tag.block.any.html
- begin: (</?)((?i:address|blockquote|dd|div|dl|dt|fieldset|form|frame|frameset|h1|h2|h3|h4|h5|h6|iframe|noframes|object|ol|p|ul|applet|center|dir|hr|menu|pre)\b)
- end: (>)
- patterns:
- - include: "#tag-stuff"
-- name: meta.tag.inline.any.html
- captures:
- "1":
- name: punctuation.definition.tag.html
- "2":
- name: entity.name.tag.inline.any.html
- begin: (</?)((?i:a|abbr|acronym|area|b|base|basefont|bdo|big|br|button|caption|cite|code|col|colgroup|del|dfn|em|font|head|html|i|img|input|ins|isindex|kbd|label|legend|li|link|map|meta|noscript|optgroup|option|param|q|s|samp|script|select|small|span|strike|strong|style|sub|sup|table|tbody|td|textarea|tfoot|th|thead|title|tr|tt|u|var)\b)
- end: (>)
- patterns:
- - include: "#tag-stuff"
-- name: meta.tag.other.html
- captures:
- "1":
- name: punctuation.definition.tag.html
- "2":
- name: entity.name.tag.other.html
- begin: (</?)([a-zA-Z0-9:]+)
- end: (>)
- patterns:
- - include: "#tag-stuff"
-- include: "#entities"
-- name: invalid.illegal.incomplete.html
- match: <>
-- name: invalid.illegal.bad-angle-bracket.html
- match: <(?=\W)|>
-foldingStopMarker: |-
- (?x)
- (</(?i:head|body|table|thead|tbody|tfoot|tr|div|select|fieldset|style|script|ul|ol|form|dl)>
- |^(?!.*?<!--).*?-->
- |^\s*%>
- |(^\s*|<%\s*)(?i:end\ (if|while|for\ each|for|case|method|save\ output)|until)\b
- )
-keyEquivalent: ^~A
View
50 syntax/active4d_ini.syntax
@@ -1,50 +0,0 @@
----
-name: Active4D Config
-fileTypes:
-- ini
-scopeName: text.active4d-ini
-repository:
- escaped_char:
- name: constant.character.escape.active4d-ini
- match: \\.
-uuid: BECA5580-F845-4715-889C-134DF4BF67C2
-patterns:
-- name: comment.line.double-slash.active4d-ini
- captures:
- "1":
- name: punctuation.definition.comment.active4d-ini
- match: (//).*$\n?
-- name: comment.line.backtick.active4d-ini
- captures:
- "1":
- name: punctuation.definition.comment.active4d-ini
- match: (`).*$\n?
-- name: comment.line.double-backslash.continuation.active4d-ini
- captures:
- "1":
- name: punctuation.definition.comment.active4d-ini
- match: (\\\\).*$\n?
-- name: comment.block.active4d-ini
- captures:
- "0":
- name: punctuation.definition.comment.active4d-ini
- begin: /\*
- end: \*/
-- name: string.quoted.double.active4d-ini
- endCaptures:
- "0":
- name: punctuation.definition.string.end.active4d-ini
- begin: "\"(?!\"\")"
- beginCaptures:
- "0":
- name: punctuation.definition.string.begin.active4d-ini
- end: "\""
- patterns:
- - include: "#escaped_char"
-- name: constant.language.boolean.active4d-ini
- match: \b(?i)(true|false|yes|no)\b
-- name: keyword.operator.active4d-ini
- match: "="
-- name: support.constant.active4d-ini
- match: (?i)((\b(use sessions|use session cookies|session var name|session timeout|session purge interval|session cookie path|session cookie name|session cookie domain|serve nonexecutables|script timeout|safe script dirs|safe doc dirs|root|refresh interval|receive timeout|platform charset|parameter mode|output encoding|output charset|max request size|log level|lib extension|lib dirs|http error page|fusebox page|expires|executable extensions|error page|default page|content charset|client is web server|cache control|auto relate one|auto relate many|auto refresh libs|auto create vars)\b)|(\<default\>|\<web\>|\<4d volume\>|\<boot volume\>))
-keyEquivalent: ^~A
View
21 syntax/active4d_library.syntax
@@ -1,21 +0,0 @@
----
-name: Active4D Library
-fileTypes:
-- a4l
-scopeName: source.active4d.library
-uuid: A595B09A-3829-48CB-958B-7D6C4646409D
-foldingStartMarker: |-
- (?x)
- (^\s*(?i:if|while|for\ each|for|case\ of|repeat|method)\b
- |^\s*<fusedoc\ fuse
- )
-patterns:
-- name: keyword.other.active4d
- match: (?i:end library|library)
-- include: source.active4d
-foldingStopMarker: |-
- (?x)
- (^\s*(?i:end\ (if|while|for\ each|for|case|method)|until)\b
- |^\s*</fusedoc>
- )
-keyEquivalent: ^~A
View
33 syntax/ada.syntax
@@ -1,33 +0,0 @@
----
-name: Ada
-fileTypes:
-- adb
-- ads
-scopeName: source.ada
-uuid: 0AB8A36E-6B1D-11D9-B034-000D93589AF6
-foldingStartMarker: \b(?i:(procedure|package|function|task|type|loop))\b
-patterns:
-- name: keyword.control.ada
- match: \b(?i:(abort|else|new|return|abs|elsif|not|reverse|abstract|end|null|accept|entry|select|access|exception|of|separate|aliased|exit|or|subtype|all|others|and|for|out|tagged|array|function|task|at|package|terminate|generic|pragma|then|begin|goto|private|type|body|procedure|if|protected|until|case|in|use|constant|is|raise|range|when|declare|limited|record|while|delay|loop|rem|with|delta|renames|digits|mod|requeue|xor|do))\b
-- name: constant.numeric.ada
- 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
-- name: string.quoted.double.ada
- endCaptures:
- "0":
- name: punctuation.definition.string.end.ada
- begin: "\""
- beginCaptures:
- "0":
- name: punctuation.definition.string.begin.ada
- end: "\""
- patterns:
- - name: invalid.illegal.lf-in-string.ada
- match: \n
-- name: comment.line.double-dash.ada
- captures:
- "1":
- name: punctuation.definition.comment.ada
- match: (--)(.*)$\n?
-foldingStopMarker: \b(?i:(end))\b
-keyEquivalent: ^~A
-comment: Ada -- chris@cjack.com. Feel free to modify, distribute, be happy. Share and enjoy.
View
151 syntax/antlr.syntax
@@ -1,151 +0,0 @@
----
-name: ANTLR
-fileTypes:
-- g
-scopeName: source.antlr
-repository:
- nested-curly:
- name: source.embedded.java-or-c.antlr
- captures:
- "0":
- name: punctuation.section.group.antlr
- begin: \{
- end: \}
- patterns:
- - name: keyword.control.java-or-c
- match: \b(break|case|continue|default|do|else|for|goto|if|_Pragma|return|switch|while)\b
- - name: storage.type.java-or-c
- match: \b(asm|__asm__|auto|bool|_Bool|char|_Complex|double|enum|float|_Imaginary|int|long|short|signed|struct|typedef|union|unsigned|void)\b
- - name: storage.modifier.java-or-c
- match: \b(const|extern|register|restrict|static|volatile|inline)\b
- - name: constant.language.java-or-c
- match: \b(NULL|true|false|TRUE|FALSE)\b
- - name: keyword.operator.sizeof.java-or-c
- match: \b(sizeof)\b
- - name: constant.numeric.java-or-c
- 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
- - name: string.quoted.double.java-or-c
- endCaptures:
- "0":
- name: punctuation.definition.string.end.java-or-c
- begin: "\""
- beginCaptures:
- "0":
- name: punctuation.definition.string.begin.java-or-c
- end: "\""
- patterns:
- - name: constant.character.escape.antlr
- match: \\.
- - name: string.quoted.single.java-or-c
- endCaptures:
- "0":
- name: punctuation.definition.string.end.java-or-c
- begin: "'"
- beginCaptures:
- "0":
- name: punctuation.definition.string.begin.java-or-c
- end: "'"
- patterns:
- - name: constant.character.escape.antlr
- match: \\.
- - name: support.constant.eof-char.antlr
- match: \bEOF_CHAR\b
- - include: "#comments"
- comments:
- patterns:
- - name: comment.block.antlr
- captures:
- "0":
- name: punctuation.definition.comment.antlr
- begin: /\*
- end: \*/
- - name: comment.line.double-slash.antlr
- captures:
- "1":
- name: punctuation.definition.comment.antlr
- match: (//).*$\n?
- strings:
- patterns:
- - name: string.quoted.double.antlr
- endCaptures:
- "0":
- name: punctuation.definition.string.end.antlr
- begin: "\""
- beginCaptures:
- "0":
- name: punctuation.definition.string.begin.antlr
- end: "\""
- patterns:
- - name: constant.character.escape.antlr
- match: \\(u\h{4}|.)
- - name: string.quoted.single.antlr
- endCaptures:
- "0":
- name: punctuation.definition.string.end.antlr
- begin: "'"
- beginCaptures:
- "0":
- name: punctuation.definition.string.begin.antlr
- end: "'"
- patterns:
- - name: constant.character.escape.antlr
- match: \\(u\h{4}|.)
-uuid: ACABDECD-4F22-47D9-A5F4-DBA957A2A1CC
-patterns:
-- include: "#strings"
-- include: "#comments"
-- name: meta.options.antlr
- begin: \boptions\b
- beginCaptures:
- "0":
- name: keyword.other.options.antlr
- end: (?<=\})
- patterns:
- - name: meta.options-block.antlr
- captures:
- "0":
- name: punctuation.section.options.antlr
- begin: \{
- end: \}
- patterns:
- - include: "#strings"
- - include: "#comments"
- - name: constant.numeric.antlr
- match: \b\d+\b
- - name: variable.other.option.antlr
- match: \b(k|charVocabulary|filter|greedy|paraphrase|exportVocab|buildAST|defaultErrorHandler|language|namespace|namespaceStd|namespaceAntlr|genHashLines)\b
- - name: constant.language.boolean.antlr
- match: \b(true|false)\b
-- name: meta.definition.class.antlr
- captures:
- "1":
- name: storage.type.antlr
- "2":
- name: entity.name.type.class.antlr
- begin: ^(class)\b\s+(\w+)
- end: ;
- patterns:
- - name: meta.definition.class.extends.antlr
- captures:
- "1":
- name: storage.modifier.antlr
- begin: \b(extends)\b\s+
- end: (?=;)
- patterns:
- - name: support.class.antlr
- match: \b(Parser|Lexer|TreeWalker)\b
-- name: storage.modifier.antlr
- match: ^protected\b
-- name: entity.name.type.token.antlr
- match: ^[[:upper:]_][[:upper:][:digit:]_]*\b
-- name: meta.rule.antlr
- captures:
- "1":
- name: entity.name.function.rule.antlr
- "2":
- name: keyword.control.antlr
- match: ^(\w+)(?:\s+(returns\b))?
-- name: constant.other.token.antlr
- match: \b[[:upper:]_][[:upper:][:digit:]_]*\b
-- include: "#nested-curly"
-keyEquivalent: ^~A
View
191 syntax/apache.syntax
@@ -1,191 +0,0 @@
----
-name: Apache
-fileTypes:
-- conf
-- htaccess
-scopeName: source.apache-config
-repository:
- vars:
- patterns:
- - name: support.variable.apache-config
- captures:
- "1":
- name: punctuation.definition.variable.apache-config
- "3":
- name: punctuation.definition.variable.apache-config
- match: (%\{)(?:HTTP_(?:USER_AGENT|REFERER|COOKIE|FORWARDED|HOST|PROXY_CONNECTION|ACCEPT)|REMOTE_(?:ADDR|HOST|USER|IDENT)|REQUEST_(?:METHOD|URI|FILENAME)|SCRIPT_FILENAME|PATH_INFO|QUERY_STRING|AUTH_TYPE|DOCUMENT_ROOT|SERVER_(?:ADMIN|NAME|ADDR|PORT|PROTOCOL|SOFTWARE)|TIME_(?:YEAR|MON|DAY|HOUR|MIN|SEC|WDAY)|TIME|API_VERSION|THE_REQUEST|IS_SUBREQ|(?:ENV|LA-U|LA-F|HTTP|SSL):[^\}]+)(\})
- - name: invalid.illegal.bad-var.apache-config
- match: "%\\{[^\\}]+\\}"
-uuid: 023D670E-80F1-11D9-9BD1-00039398C572
-foldingStartMarker: |-
- ^[ ]*(?x)
- (<(?i:FilesMatch|Files|DirectoryMatch|Directory|LocationMatch|Location|VirtualHost|IfModule|IfDefine)\b.*?>
- )
-patterns:
-- name: comment.line.number-sign.apache-config
- captures:
- "1":
- name: punctuation.definition.comment.apache-config
- match: (#).*$\n?
-- name: meta.tag.any.html
- captures:
- "6":
- name: punctuation.definition.tag.apache-config
- "1":
- name: punctuation.definition.tag.apache-config
- "2":
- name: entity.name.tag.apache-config
- "3":
- name: punctuation.definition.tag.apache-config
- "4":
- name: meta.scope.between-tag-pair.apache-config
- "5":
- name: entity.name.tag.apache-config
- match: ^[ ]*(<)([a-zA-Z0-9:]+)[^>]*(>(<)/)(\2)(>)
-- name: meta.vhost.apache-config
- endCaptures:
- "1":
- name: meta.tag.apache-config
- "2":
- name: punctuation.definition.tag.apache-config
- "3":
- name: entity.name.tag.apache-config
- "4":
- name: punctuation.definition.tag.apache-config
- begin: ^[ ]*((<)(VirtualHost)(?:[ ]+([^>]+))?(>))
- beginCaptures:
- "1":
- name: meta.tag.apache-config
- "2":
- name: punctuation.definition.tag.apache-config
- "3":
- name: entity.name.tag.apache-config
- "4":
- name: meta.toc-list.virtual-host.apache-config
- "5":
- name: punctuation.definition.tag.apache-config
- end: ^[ ]*((</)(VirtualHost)[^>]*(>))
- patterns:
- - include: $base
-- name: meta.directory.apache-config
- endCaptures:
- "1":
- name: meta.tag.apache-config
- "2":
- name: punctuation.definition.tag.apache-config
- "3":
- name: entity.name.tag.apache-config
- "4":
- name: punctuation.definition.tag.apache-config
- begin: ^[ ]*((<)(Directory(?:Match)?)(?:[ ]+([^>]+))?(>))
- beginCaptures:
- "1":
- name: meta.tag.apache-config
- "2":
- name: punctuation.definition.tag.apache-config
- "3":
- name: entity.name.tag.apache-config
- "4":
- name: meta.toc-list.directory.apache-config
- "5":
- name: punctuation.definition.tag.apache-config
- end: ^[ ]*((</)(Directory(?:Match)?)[^>]*(>))
- patterns:
- - include: $base
-- name: meta.location.apache-config
- endCaptures:
- "1":
- name: meta.tag.apache-config
- "2":
- name: punctuation.definition.tag.apache-config
- "3":
- name: entity.name.tag.apache-config
- "4":
- name: punctuation.definition.tag.apache-config
- begin: ^[ ]*((<)(Location(?:Match)?)(?:[ ]+([^>]+))?(>))
- beginCaptures:
- "1":
- name: meta.tag.apache-config
- "2":
- name: punctuation.definition.tag.apache-config
- "3":
- name: entity.name.tag.apache-config
- "4":
- name: meta.toc-list.location.apache-config
- "5":
- name: punctuation.definition.tag.apache-config
- end: ^[ ]*((</)(Location(?:Match)?)[^>]*(>))
- patterns:
- - include: $base
-- captures:
- "1":
- name: support.constant.rewritecond.apache-config
- begin: ^[ ]*\b(RewriteCond)\b
- end: $
- patterns:
- - begin: "[ ]+"
- end: $
- patterns:
- - include: "#vars"
- - name: string.regexp.rewrite-test.apache-config
- match: "[^ %\\n]+"
- - begin: "[ ]+"
- end: $
- patterns:
- - name: string.other.rewrite-condition.apache-config
- match: "[^ %\\n]+"
- - captures:
- "1":
- name: string.regexp.rewrite-operator.apache-config
- match: "[ ]+(\\[[^\\]]+\\])"
-- captures:
- "1":
- name: support.constant.rewriterule.apache-config
- begin: ^[ ]*\b(RewriteRule)\b
- end: $
- patterns:
- - begin: "[ ]+"
- end: $
- patterns:
- - include: "#vars"
- - name: string.regexp.rewrite-pattern.apache-config
- match: "[^ %]+"
- - begin: "[ ]+"
- end: $
- patterns:
- - include: "#vars"
- - name: string.other.rewrite-substitution.apache-config
- match: "[^ %\\n]+"
- - captures:
- "1":
- name: string.regexp.rewrite-operator.apache-config
- match: "[ ]+(\\[[^\\]]+\\])"
-- name: support.constant.apache-config
- match: \b(R(e(sourceConfig|direct(Match|Temp|Permanent)?|qu(ire|estHeader)|ferer(Ignore|Log)|write(Rule|Map|Base|Cond|Options|Engine|Lo(ck|g(Level)?))|admeName|move(Handler|Charset|Type|InputFilter|OutputFilter|Encoding|Language))|Limit(MEM|NPROC|CPU))|Group|XBitHack|M(MapFile|i(nSpare(Servers|Threads)|meMagicFile)|odMimeUsePathInfo|Cache(RemovalAlgorithm|M(inObjectSize|ax(StreamingBuffer|Object(Size|Count)))|Size)|ultiviewsMatch|eta(Suffix|Dir|Files)|ax(RequestsPer(Child|Thread)|MemFree|Spare(Servers|Threads)|Clients|Threads(PerChild)?|KeepAliveRequests))|B(indAddress|S2000Account|rowserMatch(NoCase)?)|S(hmemUIDisUser|c(oreBoardFile|ript(Sock|InterpreterSource|Log(Buffer|Length)?|Alias(Match)?)?)|tart(Servers|Threads)|S(I(StartTag|TimeFormat|UndefinedEcho|E(ndTag|rrorMsg))|L(R(equire(SSL)?|andomSeed)|Mutex|SessionCache(Timeout)?|C(ipherSuite|ertificate(ChainFile|KeyFile|File)|A(Revocation(Path|File)|Certificate(Path|File)))|Options|P(assPhraseDialog|ro(tocol|xy(MachineCertificate(Path|File)|C(ipherSuite|A(Revocation(Path|File)|Certificate(Path|File)))|Protocol|Engine|Verify(Depth)?)))|Engine|Verify(Client|Depth)))|uexecUserGroup|e(ndBufferSize|cureListen|t(Handler|InputFilter|OutputFilter|Env(If(NoCase)?)?)|rver(Root|Signature|Name|T(ype|okens)|Path|Limit|A(dmin|lias)))|atisfy)|H(ostnameLookups|eader(Name)?)|N(o(Cache|Proxy)|umServers|ameVirtualHost|WSSL(TrustedCerts|Upgradeable))|C(h(ildPerUserID|eckSpelling|arset(SourceEnc|Options|Default))|GI(MapExtension|CommandArgs)|o(ntentDigest|okie(Style|Name|Tracking|Domain|Prefix|Expires|Format|Log)|reDumpDirectory)|ustomLog|learModuleList|ache(Root|Gc(MemUsage|Clean|Interval|Daily|Unused)|M(inFileSize|ax(Expire|FileSize))|Size|NegotiatedDocs|TimeMargin|Ignore(NoLastMod|CacheControl)|D(i(sable|rLe(ngth|vels))|efaultExpire)|E(nable|xpiryCheck)|F(ile|orceCompletion)|LastModifiedFactor))|T(hread(sPerChild|StackSize|Limit)|ypesConfig|ime(out|Out)|ransferLog)|I(n(clude|dex(Ignore|O(ptions|rderDefault)))|SAPI(ReadAheadBuffer|CacheFile|FakeAsync|LogNotSupported|AppendLogTo(Errors|Query))|dentityCheck|f(Module|Define)|map(Menu|Base|Default))|O(ptions|rder)|D(irectory(Match|Slash|Index)?|ocumentRoot|e(ny|f(late(MemLevel|BufferSize|CompressionLevel|FilterNote|WindowSize)|ault(Type|Icon|Language)))|av(MinTimeout|DepthInfinity|LockDB)?)|U(se(CanonicalName|r(Dir)?)|nsetEnv)|P(idFile|ort|assEnv|ro(tocol(ReqCheck|Echo)|xy(Re(ceiveBufferSize|quests|mote(Match)?)|Ma(tch|xForwards)|B(lock|adHeader)|Timeout|IOBufferSize|Domain|P(ass(Reverse)?|reserveHost)|ErrorOverride|Via)?))|E(nable(MMAP|Sendfile|ExceptionHook)|BCDIC(Convert(ByType)?|Kludge)|rror(Header|Document|Log)|x(t(endedStatus|Filter(Options|Define))|pires(ByType|Default|Active)|ample))|Virtual(ScriptAlias(IP)?|Host|DocumentRoot(IP)?)|KeepAlive(Timeout)?|F(ile(s(Match)?|ETag)|or(ce(Type|LanguagePriority)|ensicLog)|ancyIndexing)|Win32DisableAcceptEx|L(i(sten(Back(log|Log))?|mit(Request(Body|Field(s(ize)?|Size)|Line)|XMLRequestBody|InternalRecursion|Except)?)|o(c(kFile|ation(Match)?)|ad(Module|File)|g(Format|Level))|DAP(SharedCache(Size|File)|Cache(TTL|Entries)|TrustedCA(Type)?|OpCache(TTL|Entries))|anguagePriority)|A(ssignUserID|nonymous(_(MustGiveEmail|NoUserID|VerifyEmail|LogEmail|Authoritative))?|c(ce(ss(Config|FileName)|pt(Mutex|PathInfo|Filter))|tion)|dd(Module(Info)?|Handler|Charset|Type|I(nputFilter|con(By(Type|Encoding))?)|OutputFilter(ByType)?|De(scription|faultCharset)|Encoding|Language|Alt(By(Type|Encoding))?)|uth(GroupFile|Name|Type|D(B(GroupFile|M(GroupFile|Type|UserFile|Authoritative)|UserFile|Authoritative)|igest(GroupFile|ShmemSize|N(cCheck|once(Format|Lifetime))|Domain|Qop|File|Algorithm))|UserFile|LDAP(RemoteUserIsDN|GroupAttribute(IsDN)?|Bind(DN|Password)|C(harsetConfig|ompareDNOnServer)|DereferenceAliases|Url|Enabled|FrontPageHack|Authoritative)|Authoritative)|l(ias(Match)?|low(CONNECT|Override|EncodedSlashes)?)|gentLog))\b
-- name: support.class.apache-config
- match: \b(access_module|action_module|alias_module|anon_auth_module|asis_module|auth_module|autoindex_module|cern_meta_module|cgi_module|config_log_module|dav_module|dbm_auth_module|digest_module|dir_module|env_module|expires_module|foo_module|headers_module|hfs_apple_module|imap_module|includes_module|info_module|jk_module|mime_magic_module|mime_module|negotiation_module|perl_module|php4_module|php5_module|proxy_module|rendezvous_apple_module|rendezvous_module|rewrite_module|setenvif_module|speling_module|ssl_module|status_module|unique_id_module|userdir_module|usertrack_module|vhost_alias_module)\b
-- name: string.quoted.double.apache-config
- endCaptures:
- "0":
- name: punctuation.definition.string.end.apache-config
- begin: "\""
- beginCaptures:
- "0":
- name: punctuation.definition.string.begin.apache-config
- end: "\"(?!\")"
- patterns:
- - name: constant.character.escape.apostrophe.apache
- match: "\"\""
-- name: meta.tag.apache-config
- captures:
- "1":
- name: punctuation.definition.tag.apache-config
- "2":
- name: entity.name.tag.apache-config
- begin: (</?)([a-zA-Z]+)
- end: (/?>)
-foldingStopMarker: |-
- ^[ ]*(?x)
- (</(?i:FilesMatch|Files|DirectoryMatch|Directory|LocationMatch|Location|VirtualHost|IfModule|IfDefine)>
- )
-keyEquivalent: ^~A
View
384 syntax/applescript.syntax
@@ -1,384 +0,0 @@
----
-name: AppleScript
-fileTypes:
-- applescript
-- script editor
-scopeName: source.applescript
-repository:
- textmate:
- patterns:
- - name: support.class.textmate.applescript
- match: \b(print settings)\b
- - name: support.function.textmate.applescript
- match: \b(get url|insert|reload bundles)\b
- standard-suite:
- patterns:
- - name: support.class.standard-suite.applescript
- match: \b(colors?|documents?|items?|windows?)\b
- - name: support.function.standard-suite.applescript
- match: \b(close|count|delete|duplicate|exists|make|move|open|print|quit|save|activate|select|data size)\b
- - name: support.constant.standard-suite.applescript
- match: \b(name|frontmost|version)\b
- - name: support.variable.standard-suite.applescript
- match: \b(selection)\b
- - name: support.class.text-suite.applescript
- match: \b(attachments?|attribute runs?|characters?|paragraphs?|texts?|words?)\b
- tell-blocks:
- patterns:
- - name: meta.tell-block.application.textmate.applescript
- captures:
- "1":
- name: keyword.control.applescript
- begin: ^\s*(tell)\s+(?=app(lication)?\s+"(?i:textmate)")(?!.*\bto\b)
- end: ^\s*(end tell)
- patterns:
- - include: "#textmate"
- - include: "#standard-suite"
- - include: $self
- comment: tell Textmate
- - name: meta.tell-block.application.finder.applescript
- captures:
- "1":
- name: keyword.control.applescript
- begin: ^\s*(tell)\s+(?=app(lication)?\s+"(?i:finder)")(?!.*\bto\b)
- end: ^\s*(end tell)
- patterns:
- - include: "#finder"
- - include: "#standard-suite"
- - include: $self
- comment: tell Finder
- - name: meta.tell-block.application.system-events.applescript
- captures:
- "1":
- name: keyword.control.applescript
- begin: ^\s*(tell)\s+(?=app(lication)?\s+"(?i:system events)")(?!.*\bto\b)
- end: ^\s*(end tell)
- patterns:
- - include: "#system-events"
- - include: "#standard-suite"
- - include: $self
- comment: tell System Events
- - name: meta.tell-block.application.itunes.applescript
- captures:
- "1":
- name: keyword.control.applescript
- begin: ^\s*(tell)\s+(?=app(lication)?\s+"(?i:itunes)")(?!.*\bto\b)
- end: ^\s*(end tell)
- patterns:
- - include: "#itunes"
- - include: "#standard-suite"
- - include: $self
- comment: tell iTunes
- - name: meta.tell-block.application.generic.applescript
- captures:
- "1":
- name: keyword.control.applescript
- begin: ^\s*(tell)\s+(?=app(lication)?\b)(?!.*\bto\b)
- end: ^\s*(end tell)
- patterns:
- - include: "#standard-suite"
- - include: $self
- comment: tell generic application
- - name: meta.tell-block.generic.applescript
- captures:
- "1":
- name: keyword.control.applescript
- begin: ^\s*(tell)\s+(?!.*\bto\b)
- end: ^\s*(end tell)
- patterns:
- - include: $self
- comment: generic tell block
- comments:
- patterns:
- - name: comment.line.double-dash.applescript
- captures:
- "1":
- name: punctuation.definition.comment.applescript
- match: (--).*$\n?
- - name: comment.block.applescript
- captures:
- "0":
- name: punctuation.definition.comment.applescript
- begin: \(\*
- end: \*\)
- inline:
- patterns:
- - include: "#comments"
- - include: "#data-structures"
- - include: "#built-in"
- - include: "#standardadditions"
- data-structures:
- patterns:
- - name: meta.data.array.applescript
- captures:
- "1":
- name: punctuation.section.array.applescript
- begin: (\{)
- end: (\})
- patterns:
- - captures:
- "1":
- name: constant.other.key.applescript
- "2":
- name: meta.identifier.applescript
- "3":
- name: punctuation.definition.identifier.applescript
- "4":
- name: punctuation.definition.identifier.applescript
- "5":
- name: punctuation.separator.key-value.applescript
- match: ([A-Za-z]+|((\|)[^|\n]*(\|)))\s*(:)
- - name: punctuation.separator.key-value.applescript
- match: ":"
- - name: punctuation.separator.array.applescript
- match: ","
- - include: "#inline"
- comment: "\n\
- \t\t\t\t\t\twe cannot necessarily distinguish \"records\" from\n\
- \t\t\t\t\t\t\"arrays\", and so this could be either\n\
- \t\t\t\t\t"
- - name: string.quoted.double.application-name.applescript
- captures:
- "1":
- name: punctuation.definition.string.applescript
- begin: ((?<=application )"|(?<=app )")
- end: (")
- patterns:
- - name: constant.character.escape.applescript
- match: \\.
- - name: string.quoted.double.applescript
- captures:
- "1":
- name: punctuation.definition.string.applescript
- begin: (")
- end: (")
- patterns:
- - name: constant.character.escape.applescript
- match: \\.
- - name: meta.identifier.applescript
- captures:
- "1":
- name: punctuation.definition.identifier.applescript
- "2":
- name: punctuation.definition.identifier.applescript
- match: (\|)[^|\n]*(\|)
- - name: meta.data.applescript
- captures:
- "6":
- name: keyword.operator.applescript
- "7":
- name: support.class.built-in.applescript
- "1":
- name: punctuation.definition.data.applescript
- "2":
- name: support.class.built-in.applescript
- "3":
- name: storage.type.utxt.applescript
- "4":
- name: string.unquoted.data.applescript
- "5":
- name: punctuation.definition.data.applescript
- match: "(\xC2\xAB)(data) (utxt|utf8)([0-9A-Fa-f]*)(\xC2\xBB)(?: (as) (Unicode text))?"
- system-events:
- patterns:
- - name: support.class.system-events.audio-file.applescript
- match: \b(audio (data|file))\b
- - name: support.class.system-events.disk-folder-file.applescript
- match: \b(alias(es)?|(Classic|local|network|system|user) domain objects?|disk( item)?s?|domains?|file( package)?s?|folders?|items?)\b
- - name: support.function.system-events.disk-folder-file.applescript
- match: \b(delete|open|move)\b
- - name: support.class.system-events.folder-actions.applescript
- match: \b(folder actions?|scripts?)\b
- - name: support.function.system-events.folder-actions.applescript
- match: \b(attach action to|attached scripts|edit action of|remove action from)\b
- - name: support.class.system-events.movie-file.applescript
- match: \b(movie data|movie file)\b
- - name: support.function.system-events.power.applescript
- match: \b(log out|restart|shut down|sleep)\b
- - name: support.class.system-events.processes.applescript
- match: \b(((application |desk accessory )?process|(check|combo )?box)(es)?|(action|attribute|browser|(busy|progress|relevance) indicator|color well|column|drawer|group|grow area|image|incrementor|list|menu( bar)?( item)?|(menu |pop up |radio )?button|outline|(radio|tab|splitter) group|row|scroll (area|bar)|sheet|slider|splitter|static text|table|text (area|field)|tool bar|UI element|window)s?)\b
- - name: support.function.system-events.processes.applescript
- match: \b(click|key code|keystroke|perform|select)\b
- - name: support.class.system-events.property-list.applescript
- match: \b(property list (file|item))\b
- - name: support.class.system-events.quicktime-file.applescript
- match: \b(annotation|QuickTime (data|file)|track)s?\b
- - name: support.function.system-events.system-events.applescript
- match: \b((abort|begin|end) transaction)\b
- - name: support.class.system-events.xml.applescript
- match: \b(XML (attribute|data|element|file)s?)\b
- - name: support.class.sytem-events.other.applescript
- match: \b(print settings|users?|login items?)\b
- itunes:
- patterns:
- - name: support.class.itunes.applescript
- match: \b(artwork|application|encoder|EQ preset|item|source|visual|(EQ |browser )?window|((audio CD|device|shared|URL|file) )?track|playlist window|((audio CD|device|radio tuner|library|folder|user) )?playlist)s?\b
- - name: support.function.itunes.applescript
- match: \b(add|back track|convert|fast forward|(next|previous) track|pause|play(pause)?|refresh|resume|rewind|search|stop|update|eject|subscribe|update(Podcast|AllPodcasts)|download)\b
- - name: support.constant.itunes.applescript
- match: \b(current (playlist|stream (title|URL)|track)|player state)\b
- - name: support.variable.itunes.applescript
- match: \b(current (encoder|EQ preset|visual)|EQ enabled|fixed indexing|full screen|mute|player position|sound volume|visuals enabled|visual size)\b
- standardadditions:
- patterns:
- - name: support.class.standardadditions.user-interaction.applescript
- match: \b((alert|dialog) reply)\b
- - name: support.class.standardadditions.file.applescript
- match: \b(file information)\b
- - name: support.class.standardadditions.miscellaneous.applescript
- match: \b(POSIX files?|system information|volume settings)\b
- - name: support.class.standardadditions.internet.applescript
- match: \b(URLs?|internet address(es)?|web pages?|FTP items?)\b
- - name: support.function.standardadditions.file.applescript
- match: \b(info for|list (disks|folder)|mount volume|path to( resource)?)\b
- - name: support.function.standardadditions.user-interaction.applescript
- match: \b(beep|choose (application|color|file( name)?|folder|from list|remote application|URL)|delay|display (alert|dialog)|say)\b
- - name: support.function.standardadditions.string.applescript
- match: \b(ASCII (character|number)|localized string|offset|summarize)\b
- - name: support.function.standardadditions.clipboard.applescript
- match: \b(set the clipboard to|the clipboard|clipboard info)\b
- - name: support.function.standardadditions.file-i-o.applescript
- match: \b(open for access|close access|read|write|get eof|set eof)\b
- - name: support.function.standardadditions.scripting.applescript
- match: \b((load|store|run) script|scripting components)\b
- - name: support.function.standardadditions.miscellaneous.applescript
- match: \b(current date|do shell script|get volume settings|random number|round|set volume|system attribute|system info|time to GMT)\b
- - name: support.function.standardadditions.folder-actions.applescript
- match: \b(opening folder|(closing|moving) folder window for|adding folder items to|removing folder items from)\b
- - name: support.function.standardadditions.internet.applescript
- match: \b(open location|handle CGI request)\b
- built-in:
- patterns:
- - name: punctuation.separator.continuation.line.applescript
- match: !binary |
- wqw=
-
- - name: keyword.operator.applescript
- match: "\\b((a )?(ref( to)|reference to)|(does not|doesn't) (come (before|after)|contain|equal)|(start|begin)s? with|comes (before|after)|is(n't| not)?( (in|contained by|(less than|greater than)( or equal( to)?)?|equal( to)?))?|ends? with|contains?|equals?|than|and|div|mod|not|or|as)\\b|(\xE2\x89\xA0|\xE2\x89\xA5|\xE2\x89\xA4|>=|<=|\xC3\xB7|&|=|>|<|\\*|\\+|-|/|\\^)"
- - captures:
- "1":
- name: keyword.control.applescript
- match: (?<=^|then|to)\s*\b(return|prop(erty)?)\b
- comment: make sure that "return", "property", and other keywords are not preceded by something else, to disambiguate
- - name: punctuation.separator.key-value.property.applescript
- match: ":"
- comment: "the : in property assignments"
- - name: punctuation.section.group.applescript
- match: "[()]"
- comment: the parentheses in groups
- - name: keyword.control.applescript
- match: \b(on error|try|to|on|tell|if|then|else if|else|repeat( (while|until|with))?|using terms from|from|through|thru|with timeout|times|end (tell|repeat|if|timeout|using terms from|error|try)|end|my|where|whose|considering|ignoring|global|local|exit|continue|returning|set|copy|put)\b
- - name: keyword.control.reference.applescript
- match: \b(every|some|index|named|from|to|through|thru|before|(in )?front of|after receiving|after|(in )?back of|beginning of|end of|in|of|first|second|third|fourth|fifth|sixth|seventh|eighth|ninth|tenth|\d+(st|nd|rd|th)|last|front|back|middle)\b
- - name: constant.other.text-styles.applescript
- match: \b(all (caps|lowercase)|bold|condensed|expanded|hidden|italic|outline|plain|shadow|small caps|strikethrough|(sub|super)script|underline)\b
- - name: constant.language.boolean.applescript
- match: \b(?i:true|false|yes|no)\b
- comment: "yes/no can\xE2\x80\x99t always be used as booleans, e.g. in an if() expression. But they work e.g. for boolean arguments."
- - name: constant.language.null.applescript
- match: \b(null)\b
- - name: constant.other.date-time.applescript
- match: \b(Jan(uary)?|Feb(ruary)?|Mar(ch)?|Apr(il)?|May|Jun(e)?|Jul(y)?|Aug(ust)?|Sep(tember)?|Oct(ober)?|Nov(ember)?|Dec(ember)?|weekdays?|Sunday|Monday|Tuesday|Wednesday|Thursday|Friday|Saturday)\b
- - name: constant.other.considering-ignoring-attributes.applescript
- match: \b(?<=considering|ignoring) (application responses|current application|case|diacriticals|expansion|hyphens|punctuation|white space)\b
- comment: these are used in considering/ignoring statements
- - name: constant.other.characters.applescript
- match: \b(space|return|tab)\b
- - name: constant.other.miscellaneous.applescript
- match: \b(current application|it|me|version|result|pi|AppleScript)\b
- - name: variable.language.applescript
- match: \b(text item delimiters|print length|print depth)\b
- - name: support.function.built-in.applescript
- match: \b(count (each|every)|number of|error|get|run)\b
- - name: support.class.built-in.applescript
- match: \b(booleans?|integers?|reals?|numbers?|(linked )?lists?|vectors?|records?|items?|scripts?|events?|propert(y|ies)|constants?|prepositions?|reference forms?|handlers?|data|characters?|writing code( infos?)?|missing values?|references?|anything|missing value|upper case|app(lications?)?|text items?|((international|styled( Clipboard|Unicode)?|Unicode) )?text|(C | encoded| Pascal )?strings?|(type )?class(es)?|RGB colors?|pictures?|sounds?|versions?|file specifications?|alias(es)?|machines?|zones?|keystrokes?|seconds|dates?|months?|(cubic |square |cubic centi|square kilo|centi|kilo)met(er|re)s|(square |cubic )?(yards|feet)|(square )?miles|(cubic )?inches|lit(re|er)s|gallons|quarts|(kilo)?grams|ounces|pounds|degrees (Celsius|Fahrenheit|Kelvin))\b
- - name: constant.numeric.applescript
- match: \b\d+((\.(\d+\b)?)?(?i:e\+?\d*\b)?|\b)
- finder:
- patterns:
- - name: support.class.finder.items.applescript
- match: \b(item|container|(computer|disk|trash)-object|disk|folder|((alias|application|document|internet location) )?file|clipping|package)s?\b
- - name: support.class.finder.window-classes.applescript
- match: \b((Finder|desktop|information|preferences|clipping) )windows?\b
- - name: support.class.finder.type-definitions.applescript
- match: \b(preferences|(icon|column|list) view options|(label|column|alias list)s?)\b
- - name: support.function.finder.items.applescript
- match: \b(copy|find|sort|clean up|eject|empty( trash)|erase|reveal|update)\b
- - name: support.constant.finder.applescript
- match: \b(insertion location|product version|startup disk|desktop|trash|home|computer container|finder preferences)\b
- - name: support.variable.finder.applescript
- match: \b(visible)\b
- blocks:
- patterns:
- - name: meta.script.applescript
- captures:
- "1":
- name: keyword.control.script.applescript
- "2":
- name: entity.name.type.script-object.applescript
- begin: ^\s*(script)\s+(\w+)
- end: ^\s*(end script)
- patterns:
- - include: $self
- - name: meta.function.with-parentheses.applescript
- captures:
- "1":
- name: keyword.control.on.applescript
- "2":
- name: entity.name.function.handler.applescript
- "3":
- name: punctuation.definition.parameters.applescript
- "4":
- name: variable.parameter.handler.applescript
- "5":
- name: punctuation.definition.parameters.applescript
- begin: "^(?x)\n\
- \t\t\t\t\t\t\\s*(to|on)\\s+ \t\t\t\t\t# \"on\" or \"to\"\n\
- \t\t\t\t\t\t([A-Za-z][A-Za-z0-9_]*)\t\t\t# function name\n\
- \t\t\t\t\t\t(\\()\t\t\t\t\t\t\t# opening paren\n\
- \t\t\t\t\t\t\t(?:(\\w+(?:\\s*,\\s*\\w+)*))?\t# parameters\n\
- \t\t\t\t\t\t(\\))\t\t\t\t\t\t\t# closing paren\n\
- \t\t\t\t\t"
- end: "^\\s*(end)(?: (\\2))?\\s*$"
- patterns:
- - include: $self
- comment: "\n\
- \t\t\t\t\t\tThis is not a very well-designed rule. For now,\n\
- \t\t\t\t\t\twe can leave it like this though, as it sorta works.\n\
- \t\t\t\t\t"
- - name: meta.function.prepositional.applescript
- captures:
- "1":
- name: keyword.control.on.applescript
- "2":
- name: entity.name.function.handler.applescript
- begin: ^\s*(on)\s+(\w+)(?=\s+(above|against|apart from|around|aside from|at|below|beneath|beside|between|by|for|from|instead of|into|on|onto|out of|over|thru|under)\s+)
- end: "^\\s*(end)(?: (\\2))?\\s*$"
- patterns:
- - captures:
- "1":
- name: keyword.control.preposition.applescript
- "2":
- name: variable.parameter.handler.applescript
- match: \b(above|against|apart from|around|aside from|at|below|beneath|beside|between|by|for|from|instead of|into|on|onto|out of|over|thru|under)\s+(\w+)\b
- - include: $self
- - include: "#tell-blocks"
-uuid: 777CF925-14B9-428E-B07B-17FAAB8FA27E
-foldingStartMarker: "(?x)\n\
- \t\t^\\s*\n\
- \t\t(tell \\s+ (?! .* \\bto\\b) .*\n\
- \t\t|using \\s+ terms \\s+ from \\s+ .*\n\
- \t\t|if\\b .* \\bthen\\b .*\n\
- \t\t|repeat\\b .*\n\
- \t\t|( on | to )\\b (?!\\s+ error) .*\n\
- \t\t|try\n\
- \t\t|with \\s+ timeout .*\n\
- \t\t|script\\b .*\n\
- \t\t|( considering | ignoring )\\b .*\n\
- \t\t)\\s*$\n\
- \t"
-patterns:
-- include: "#blocks"
-- include: "#inline"
-foldingStopMarker: ^\s*end\b.*$
-keyEquivalent: ^~A
View
70 syntax/asp.syntax
@@ -1,70 +0,0 @@
----
-name: ASP
-fileTypes:
-- asa
-scopeName: source.asp
-uuid: 291022B4-6B1D-11D9-90EB-000D93589AF6
-patterns:
-- name: meta.function.asp
- captures:
- "1":
- name: storage.type.function.asp
- "2":
- name: entity.name.function.asp
- "3":
- name: punctuation.definition.parameters.asp
- "4":
- name: variable.parameter.function.asp
- "5":
- name: punctuation.definition.parameters.asp
- match: ^\s*((?i:function|sub))\s*([a-zA-Z_]\w*)\s*(\()([^)]*)(\)).*\n?
-- name: comment.line.apostrophe.asp
- captures:
- "1":
- name: punctuation.definition.comment.asp
- match: (').*$\n?
-- name: keyword.control.asp
- match: (?i:\b(If|Then|Else|ElseIf|End If|While|Wend|For|To|Each|Case|Select|End Select|Return|Continue|Do|Until|Loop|Next|With|Exit Do|Exit For|Exit Function|Exit Property|Exit Sub)\b)
-- name: keyword.operator.asp
- match: (?i:\b(Mod|And|Not|Or|Xor)\b)
-- name: storage.type.asp
- match: (?i:\b(Call|Class|Const|Dim|Redim|Function|Sub|End sub|End Function|Set|Let|Get|New|Randomize|Option Explicit|On Error Resume Next|On Error GoTo)\b)
-- name: storage.modifier.asp
- match: (?i:\b(Private|Public|Default)\b)
-- name: constant.language.asp
- match: (?i:\b(Empty|False|Nothing|Null|True)\b)
-- name: string.quoted.double.asp
- endCaptures:
- "0":
- name: punctuation.definition.string.end.asp
- begin: "\""
- beginCaptures:
- "0":
- name: punctuation.definition.string.begin.asp
- end: "\"(?!\")"
- patterns:
- - name: constant.character.escape.apostrophe.asp
- match: "\"\""
-- name: variable.other.asp
- captures:
- "1":
- name: punctuation.definition.variable.asp
- match: (\$)[a-zA-Z_x7f-xff][a-zA-Z0-9_x7f-xff]*?\b
-- name: support.class.asp
- match: (?i:\b(Application|ObjectContext|Request|Response|Server|Session)\b)
-- name: support.class.collection.asp
- match: (?i:\b(Contents|StaticObjects|ClientCertificate|Cookies|Form|QueryString|ServerVariables)\b)
-- name: support.constant.asp
- match: (?i:\b(TotalBytes|Buffer|CacheControl|Charset|ContentType|Expires|ExpiresAbsolute|IsClientConnected|PICS|Status|ScriptTimeout|CodePage|LCID|SessionID|Timeout)\b)
-- name: support.function.asp
- match: (?i:\b(Lock|Unlock|SetAbort|SetComplete|BianryRead|AddHeader|AppendToLog|BinaryWrite|Clear|End|Flush|Redirect|Write|CreateObject|HTMLEncode|MapPath|URLEncode|Abandon)\b)
-- name: support.function.event.asp
- match: (?i:\b(Application_OnEnd|Application_OnStart|OnTransactionAbort|OnTransactionCommit|Session_OnEnd|Session_OnStart)\b)
-- name: support.function.vb.asp
- match: (?i:\b(Array|Add|Asc|Atn|CBool|CByte|CCur|CDate|CDbl|Chr|CInt|CLng|Conversions|Cos|CreateObject|CSng|CStr|Date|DateAdd|DateDiff|DatePart|DateSerial|DateValue|Day|Derived|Math|Escape|Eval|Exists|Exp|Filter|FormatCurrency|FormatDateTime|FormatNumber|FormatPercent|GetLocale|GetObject|GetRef|Hex|Hour|InputBox|InStr|InStrRev|Int|Fix|IsArray|IsDate|IsEmpty|IsNull|IsNumeric|IsObject|Item|Items|Join|Keys|LBound|LCase|Left|Len|LoadPicture|Log|LTrim|RTrim|Trim|Maths|Mid|Minute|Month|MonthName|MsgBox|Now|Oct|Remove|RemoveAll|Replace|RGB|Right|Rnd|Round|ScriptEngine|ScriptEngineBuildVersion|ScriptEngineMajorVersion|ScriptEngineMinorVersion|Second|SetLocale|Sgn|Sin|Space|Split|Sqr|StrComp|String|StrReverse|Tan|Time|Timer|TimeSerial|TimeValue|TypeName|UBound|UCase|Unescape|VarType|Weekday|WeekdayName|Year)\b)
-- name: constant.numeric.asp
- 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)?\b
-- name: support.type.vb.asp
- match: (?i:\b(vbtrue|fvbalse|vbcr|vbcrlf|vbformfeed|vblf|vbnewline|vbnullchar|vbnullstring|vbtab|vbverticaltab|vbbinarycompare|vbtextcomparevbsunday|vbmonday|vbtuesday|vbwednesday|vbthursday|vbfriday|vbsaturday|vbusesystemdayofweek|vbfirstjan1|vbfirstfourdays|vbfirstfullweek|vbgeneraldate|vblongdate|vbshortdate|vblongtime|vbshorttime|vbobjecterror|vbEmpty|vbNull|vbInteger|vbLong|vbSingle|vbDouble|vbCurrency|vbDate|vbString|vbObject|vbError|vbBoolean|vbVariant|vbDataObject|vbDecimal|vbByte|vbArray)\b)
-keyEquivalent: ^~A
-comment: "ASP SCRIPTING DICTIONARY \xE2\x80\x93 By Rich Barton: Version 1.0 (based on PHP Scripting Dictionary by Justin French, Sune Foldager and Allan Odgaard) Note: .asp is handled by asp/html"
View
129 syntax/asp_vb.net.syntax
@@ -1,129 +0,0 @@
----
-name: ASP vb.NET
-fileTypes:
-- vb
-scopeName: source.asp.vb.net
-repository:
- round-brackets:
- name: meta.round-brackets
- endCaptures:
- "0":
- name: punctuation.section.round-brackets.end.asp
- begin: \(
- beginCaptures:
- "0":
- name: punctuation.section.round-brackets.begin.asp
- end: \)
- patterns:
- - include: source.asp.vb.net
-uuid: 7F9C9343-D48E-4E7D-BFE8-F680714DCD3E
-foldingStartMarker: (<(?i:(head|table|div|style|script|ul|ol|form|dl))\b.*?>|\{|^\s*<?%?\s*'?\s*(?i:(sub|private\s+Sub|public\s+Sub|function|if|while|For))\s*.*$)
-patterns:
-- name: meta.ending-space
- match: \n
-- include: "#round-brackets"
-- name: meta.leading-space
- begin: ^(?=\t)
- end: (?=[^\t])
- patterns:
- - captures:
- "1":
- name: meta.odd-tab.tabs
- "2":
- name: meta.even-tab.tabs
- match: (\t)(\t)?
-- name: meta.leading-space
- begin: ^(?= )
- end: (?=[^ ])
- patterns:
- - captures:
- "1":
- name: meta.odd-tab.spaces
- "2":
- name: meta.even-tab.spaces
- match: ( )( )?
-- name: meta.function.asp
- captures:
- "1":
- name: storage.type.function.asp
- "2":
- name: entity.name.function.asp
- "3":
- name: punctuation.definition.parameters.asp
- "4":
- name: variable.parameter.function.asp
- "5":
- name: punctuation.definition.parameters.asp
- match: ^\s*((?i:function|sub))\s*([a-zA-Z_]\w*)\s*(\()([^)]*)(\)).*\n?
-- name: comment.line.apostrophe.asp
- begin: "'"
- beginCaptures:
- "0":
- name: punctuation.definition.comment.asp
- end: (?=(\n|%>))
-- name: keyword.control.asp
- match: (?i:\b(If|Then|Else|ElseIf|Else If|End If|While|Wend|For|To|Each|Case|Select|End Select|Return|Continue|Do|Until|Loop|Next|With|Exit Do|Exit For|Exit Function|Exit Property|Exit Sub|IIf)\b)
-- name: keyword.operator.asp
- match: (?i:\b(Mod|And|Not|Or|Xor|as)\b)
-- name: variable.other.dim.asp
- captures:
- "1":
- name: storage.type.asp
- "2":
- name: variable.other.bfeac.asp
- "3":
- name: meta.separator.comma.asp
- match: (?i:(dim)\s*(?:(\b[a-zA-Z_x7f-xff][a-zA-Z0-9_x7f-xff]*?\b)\s*(,?)))
-- name: storage.type.asp
- match: (?i:\s*\b(Call|Class|Const|Dim|Redim|Function|Sub|Private Sub|Public Sub|End sub|End Function|Set|Let|Get|New|Randomize|Option Explicit|On Error Resume Next|On Error GoTo)\b\s*)
-- name: storage.modifier.asp
- match: (?i:\b(Private|Public|Default)\b)
-- name: constant.language.asp
- match: (?i:\s*\b(Empty|False|Nothing|Null|True)\b)
-- name: string.quoted.double.asp
- endCaptures:
- "0":
- name: punctuation.definition.string.end.asp
- begin: "\""
- beginCaptures:
- "0":
- name: punctuation.definition.string.begin.asp
- end: "\""
- patterns:
- - name: constant.character.escape.apostrophe.asp
- match: "\"\""
-- name: variable.other.asp
- captures:
- "1":
- name: punctuation.definition.variable.asp
- match: (\$)[a-zA-Z_x7f-xff][a-zA-Z0-9_x7f-xff]*?\b\s*
-- name: support.class.asp
- match: (?i:\b(Application|ObjectContext|Request|Response|Server|Session)\b)
-- name: support.class.collection.asp
- match: (?i:\b(Contents|StaticObjects|ClientCertificate|Cookies|Form|QueryString|ServerVariables)\b)
-- name: support.constant.asp
- match: (?i:\b(TotalBytes|Buffer|CacheControl|Charset|ContentType|Expires|ExpiresAbsolute|IsClientConnected|PICS|Status|ScriptTimeout|CodePage|LCID|SessionID|Timeout)\b)
-- name: support.function.asp
- match: (?i:\b(Lock|Unlock|SetAbort|SetComplete|BianryRead|AddHeader|AppendToLog|BinaryWrite|Clear|End|Flush|Redirect|Write|CreateObject|HTMLEncode|MapPath|URLEncode|Abandon|Convert|Regex)\b)
-- name: support.function.event.asp
- match: (?i:\b(Application_OnEnd|Application_OnStart|OnTransactionAbort|OnTransactionCommit|Session_OnEnd|Session_OnStart)\b)
-- name: support.type.vb.asp
- match: (?i:(?<=as )(\b[a-zA-Z_x7f-xff][a-zA-Z0-9_x7f-xff]*?\b))
-- name: support.function.vb.asp
- match: (?i:\b(Array|Add|Asc|Atn|CBool|CByte|CCur|CDate|CDbl|Chr|CInt|CLng|Conversions|Cos|CreateObject|CSng|CStr|Date|DateAdd|DateDiff|DatePart|DateSerial|DateValue|Day|Derived|Math|Escape|Eval|Exists|Exp|Filter|FormatCurrency|FormatDateTime|FormatNumber|FormatPercent|GetLocale|GetObject|GetRef|Hex|Hour|InputBox|InStr|InStrRev|Int|Fix|IsArray|IsDate|IsEmpty|IsNull|IsNumeric|IsObject|Item|Items|Join|Keys|LBound|LCase|Left|Len|LoadPicture|Log|LTrim|RTrim|Trim|Maths|Mid|Minute|Month|MonthName|MsgBox|Now|Oct|Remove|RemoveAll|Replace|RGB|Right|Rnd|Round|ScriptEngine|ScriptEngineBuildVersion|ScriptEngineMajorVersion|ScriptEngineMinorVersion|Second|SetLocale|Sgn|Sin|Space|Split|Sqr|StrComp|String|StrReverse|Tan|Time|Timer|TimeSerial|TimeValue|TypeName|UBound|UCase|Unescape|VarType|Weekday|WeekdayName|Year)\b)
-- name: constant.numeric.asp
- 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)?\b
-- name: support.type.vb.asp
- match: (?i:\b(vbtrue|fvbalse|vbcr|vbcrlf|vbformfeed|vblf|vbnewline|vbnullchar|vbnullstring|int32|vbtab|vbverticaltab|vbbinarycompare|vbtextcomparevbsunday|vbmonday|vbtuesday|vbwednesday|vbthursday|vbfriday|vbsaturday|vbusesystemdayofweek|vbfirstjan1|vbfirstfourdays|vbfirstfullweek|vbgeneraldate|vblongdate|vbshortdate|vblongtime|vbshorttime|vbobjecterror|vbEmpty|vbNull|vbInteger|vbLong|vbSingle|vbDouble|vbCurrency|vbDate|vbString|vbObject|vbError|vbBoolean|vbVariant|vbDataObject|vbDecimal|vbByte|vbArray)\b)
-- name: support.function.asp
- captures:
- "1":
- name: entity.name.function.asp
- match: (?i:(\b[a-zA-Z_x7f-xff][a-zA-Z0-9_x7f-xff]*?\b)(?=\(\)?))
-- name: variable.other.asp
- match: (?i:((?<=(\+|=|-|\&|\\|/|<|>|\(|,))\s*\b([a-zA-Z_x7f-xff][a-zA-Z0-9_x7f-xff]*?)\b(?!(\(|\.))|\b([a-zA-Z_x7f-xff][a-zA-Z0-9_x7f-xff]*?)\b(?=\s*(\+|=|-|\&|\\|/|<|>|\(|\)))))
-- name: keyword.operator.js
- match: "!|\\$|%|&|\\*|\\-\\-|\\-|\\+\\+|\\+|~|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|!|&&|\\|\\||\\?\\:|\\*=|/=|%=|\\+=|\\-=|&=|\\^=|\\b(in|instanceof|new|delete|typeof|void)\\b"
-foldingStopMarker: (</(?i:(head|table|div|style|script|ul|ol|form|dl))>?|\}|^\s*<?%?\s*\s*'?\s*(?i:(end|Next))\s*.*$)
-keyEquivalent: ^~A
-comment: Modified from the original ASP bundle. Originally modified by Thomas Aylott subtleGradient.com
View
151 syntax/bibtex.syntax
@@ -1,151 +0,0 @@
----
-name: BibTeX
-fileTypes:
-- bib
-scopeName: text.bibtex
-repository:
- nested_braces:
- endCaptures:
- "0":
- name: punctuation.definition.group.end.bibtex
- begin: \{
- beginCaptures:
- "0":
- name: punctuation.definition.group.begin.bibtex
- end: \}
- patterns:
- - include: "#nested_braces"
- integer:
- name: constant.numeric.bibtex
- match: \d+
- string_content:
- patterns:
- - name: string.quoted.double.bibtex
- endCaptures:
- "0":
- name: punctuation.definition.string.end.bibtex
- begin: "\""
- beginCaptures:
- "0":
- name: punctuation.definition.string.begin.bibtex
- end: "\""
- patterns:
- - include: "#nested_braces"
- - name: string.quoted.other.braces.bibtex
- endCaptures:
- "0":
- name: punctuation.definition.string.end.bibtex
- begin: \{
- beginCaptures:
- "0":
- name: punctuation.definition.string.begin.bibtex
- end: \}
- patterns:
- - name: invalid.illegal.at-sign.bibtex
- match: "@"
- - include: "#nested_braces"
-uuid: 47F30BA1-6B1D-11D9-9A60-000D93589AF6
-foldingStartMarker: \@[a-zA-Z]+\s*[{(].+,
-patterns:
-- name: comment.line.at-sign.bibtex
- begin: "@Comment"
- beginCaptures:
- "0":
- name: punctuation.definition.comment.bibtex
- end: $\n?
-- name: meta.string-constant.braces.bibtex
- endCaptures:
- "0":
- name: punctuation.section.string-constant.end.bibtex
- begin: ((@)String)\s*(\{)\s*([a-zA-Z]*)
- beginCaptures:
- "1":
- name: keyword.other.string-constant.bibtex
- "2":
- name: punctuation.definition.keyword.bibtex
- "3":
- name: punctuation.section.string-constant.begin.bibtex
- "4":
- name: variable.other.bibtex
- end: \}
- patterns:
- - include: "#string_content"
-- name: meta.string-constant.parenthesis.bibtex
- endCaptures:
- "0":
- name: punctuation.section.string-constant.end.bibtex
- begin: ((@)String)\s*(\()\s*([a-zA-Z]*)
- beginCaptures:
- "1":
- name: keyword.other.string-constant.bibtex
- "2":
- name: punctuation.definition.keyword.bibtex
- "3":
- name: punctuation.section.string-constant.begin.bibtex
- "4":
- name: variable.other.bibtex
- end: \)
- patterns:
- - include: "#string_content"
-- name: meta.entry.braces.bibtex
- endCaptures:
- "0":
- name: punctuation.section.entry.end.bibtex
- begin: ((@)[a-zA-Z]+)\s*(\{)\s*([^\s,]*)
- beginCaptures:
- "1":
- name: keyword.other.entry-type.bibtex
- "2":
- name: punctuation.definition.keyword.bibtex
- "3":
- name: punctuation.section.entry.begin.bibtex
- "4":
- name: entity.name.type.entry-key.bibtex
- end: \}
- patterns:
- - name: meta.key-assignment.bibtex
- begin: ([a-zA-Z]+)\s*(\=)
- beginCaptures:
- "1":
- name: string.unquoted.key.bibtex
- "2":
- name: punctuation.separator.key-value.bibtex
- end: (?=[,}])
- patterns:
- - include: "#string_content"
- - include: "#integer"
-- name: meta.entry.parenthesis.bibtex
- endCaptures:
- "0":
- name: punctuation.section.entry.end.bibtex
- begin: ((@)[a-zA-Z]+)\s*(\()\s*([^\s,]*)
- beginCaptures:
- "1":
- name: keyword.other.entry-type.bibtex
- "2":
- name: punctuation.definition.keyword.bibtex
- "3":
- name: punctuation.section.entry.begin.bibtex
- "4":
- name: entity.name.type.entry-key.bibtex
- end: \)
- patterns:
- - name: meta.key-assignment.bibtex
- begin: ([a-zA-Z]+)\s*(\=)
- beginCaptures:
- "1":
- name: string.unquoted.key.bibtex
- "2":
- name: punctuation.separator.key-value.bibtex
- end: (?=[,)])
- patterns:
- - include: "#string_content"
- - include: "#integer"
-- name: comment.block.bibtex
- begin: "[^@\\n]"
- end: (?=@)
-foldingStopMarker: ^\s*[)}]\s*$
-comment: "Grammar based on description from http://artis.imag.fr/~Xavier.Decoret/resources/xdkbibtex/bibtex_summary.html#comment\n\
- \t\n\
- \tTODO: Does not support @preamble\n\
- \t"
View
41 syntax/blog_html.syntax
@@ -1,41 +0,0 @@
----
-name: "Blog \xE2\x80\x94 HTML"
-fileTypes:
-- blog.html
-firstLineMatch: "^Type: Blog Post \\(HTML\\)"
-scopeName: text.blog.html
-uuid: E46F5C50-5D16-4B5C-8FBB-686BD3768284
-foldingStartMarker: |-
- (?x)
- (<(?i:head|body|table|thead|tbody|tfoot|tr|div|select|fieldset|style|script|ul|ol|form|dl)\b.*?>
- |<!--(?!.*--\s*>)
- |\{\{?(if|foreach|capture|literal|foreach|php|section|strip)
- |\{\s*($|\?>\s*$|//|/\*(.*\*/\s*$|(?!.*?\*/)))
- )
-patterns:
-- name: meta.header.blog
- captures:
- "1":
- name: keyword.other.blog
- "2":
- name: punctuation.separator.key-value.blog
- "3":
- name: string.unquoted.blog
- match: ^([Tt]itle|[Dd]ate|[Bb]asename|[Kk]eywords|[Bb]log|[Tt]ype|[Ll]ink|[Pp]ost|[Tt]ags|[Cc]omments|[Pp]ings?|[Cc]ategory|[Ss]tatus|[Ff]ormat)(:)\s*(.*)$\n?
-- name: invalid.illegal.meta.header.blog
- match: ^([A-Za-z0-9]+):\s*(.*)$\n?
-- name: text.html
- begin: ^(?![A-Za-z0-9]+:)
- end: ^(?=not)possible$
- patterns:
- - name: meta.separator.blog
- match: "^\xE2\x9C\x82-[\xE2\x9C\x82-]+$\\n"
- - include: text.html.basic
-foldingStopMarker: |-
- (?x)
- (</(?i:head|body|table|thead|tbody|tfoot|tr|div|select|fieldset|style|script|ul|ol|form|dl)>
- |^(?!.*?<!--).*?--\s*>
- |\{\{?/(if|foreach|capture|literal|foreach|php|section|strip)
- |^[^{]*\}
- )
-keyEquivalent: ^~B
View
42 syntax/blog_markdown.syntax
@@ -1,42 +0,0 @@
----
-name: "Blog \xE2\x80\x94 Markdown"
-fileTypes:
-- blog.markdown
-- blog.mdown
-- blog.mkdn
-- blog.md
-firstLineMatch: "^Type: Blog Post \\(Markdown\\)"
-scopeName: text.blog.markdown
-uuid: 6AA68B5B-18B8-4922-9CED-0E2295582955
-foldingStartMarker: |-
- (?x)
- (<(?i:head|body|table|thead|tbody|tfoot|tr|div|select|fieldset|style|script|ul|ol|form|dl)\b.*?>
- |<!--(?!.*-->)
- |\{\s*($|\?>\s*$|//|/\*(.*\*/\s*$|(?!.*?\*/)))
- )
-patterns:
-- name: meta.header.blog
- captures:
- "1":
- name: keyword.other.blog
- "2":
- name: punctuation.separator.key-value.blog
- "3":
- name: string.unquoted.blog
- match: ^([Tt]itle|[Dd]ate|[Bb]asename|[Kk]eywords|[Bb]log|[Tt]ype|[Ll]ink|[Pp]ost|[Tt]ags|[Cc]omments|[Pp]ings?|[Cc]ategory|[Ss]tatus|[Ff]ormat)(:)\s*(.*)$\n?
-- name: invalid.illegal.meta.header.blog
- match: ^([A-Za-z0-9]+):\s*(.*)$\n?
-- name: text.html.markdown
- begin: ^(?![A-Za-z0-9]+:)
- end: ^(?=not)possible$
- patterns:
- - name: meta.separator.blog
- match: "^\xE2\x9C\x82-[\xE2\x9C\x82-]+$\\n"
- - include: text.html.markdown
-foldingStopMarker: |-
- (?x)
- (</(?i:head|body|table|thead|tbody|tfoot|tr|div|select|fieldset|style|script|ul|ol|form|dl)>
- |^\s*-->
- |(^|\s)\}
- )
-keyEquivalent: ^~B
View
27 syntax/blog_text.syntax
@@ -1,27 +0,0 @@
----
-name: "Blog \xE2\x80\x94 Text"
-fileTypes:
-- blog.txt
-firstLineMatch: "^Type: Blog Post \\(Text\\)"
-scopeName: text.blog
-uuid: B2CCDFF8-0FB3-492A-8761-D31FF0FAC448
-patterns:
-- name: meta.header.blog
- captures:
- "1":
- name: keyword.other.blog
- "2":
- name: punctuation.separator.key-value.blog
- "3":
- name: string.unquoted.blog
- match: ^([Tt]itle|[Dd]ate|[Bb]asename|[Kk]eywords|[Bb]log|[Tt]ype|[Ll]ink|[Pp]ost|[Tt]ags|[Cc]omments|[Pp]ings?|[Cc]ategory|[Ss]tatus|[Ff]ormat)(:)\s*(.*)$\n?
-- name: invalid.illegal.meta.header.blog
- match: ^([A-Za-z0-9]+):\s*(.*)$\n?
-- name: text.plain
- begin: ^(?![A-Za-z0-9]+:)
- end: ^(?=not)possible$
- patterns:
- - name: meta.separator.blog
- match: "^\xE2\x9C\x82-[\xE2\x9C\x82-]+$\\n"
- - include: text.plain
-keyEquivalent: ^~B
View
27 syntax/blog_textile.syntax
@@ -1,27 +0,0 @@
----
-name: "Blog \xE2\x80\x94 Textile"
-fileTypes:
-- blog.textile
-firstLineMatch: "^Type: Blog Post \\(Textile\\)"
-scopeName: text.blog.textile
-uuid: 32E65853-CDBD-401A-ADBE-F94F195249BE
-patterns:
-- name: meta.header.blog
- captures:
- "1":
- name: keyword.other.blog
- "2":
- name: punctuation.separator.key-value.blog
- "3":
- name: string.unquoted.blog
- match: ^([Tt]itle|[Dd]ate|[Bb]asename|[Kk]eywords|[Bb]log|[Tt]ype|[Ll]ink|[Pp]ost|[Tt]ags|[Cc]omments|[Pp]ings?|[Cc]ategory|[Ss]tatus|[Ff]ormat)(:)\s*(.*)$\n?
-- name: invalid.illegal.meta.header.blog
- match: ^([A-Za-z0-9]+):\s*(.*)$\n?
-- name: text.html.textile
- begin: ^(?![A-Za-z0-9]+:)
- end: ^(?=not)possible$
- patterns:
- - name: meta.separator.blog
- match: "^\xE2\x9C\x82-[\xE2\x9C\x82-]+$\\n"
- - include: text.html.textile
-keyEquivalent: ^~B
View
543 syntax/broken/markdown.syntax
@@ -1,543 +0,0 @@
----
-name: Markdown
-fileTypes:
-- markdown
-- mdown
-- markdn
-- md
-scopeName: text.html.markdown
-repository:
- image-inline:
- name: meta.image.inline.markdown
- captures:
- "6":
- name: punctuation.definition.metadata.markdown
- "11":
- name: punctuation.definition.string.markdown
- "7":
- name: punctuation.definition.link.markdown
- "12":
- name: punctuation.definition.string.markdown
- "8":
- name: markup.underline.link.image.markdown
- "13":
- name: string.other.link.description.title.markdown
- "9":
- name: punctuation.definition.link.markdown
- "14":
- name: punctuation.definition.string.markdown
- "15":
- name: punctuation.definition.string.markdown
- "16":
- name: punctuation.definition.metadata.markdown
- "1":
- name: punctuation.definition.string.begin.markdown
- "2":
- name: string.other.link.description.markdown
- "3":
- name: punctuation.definition.string.end.markdown
- "10":
- name: string.other.link.description.title.markdown
- "5":
- name: invalid.illegal.whitespace.markdown
- match: "(?x:\n\
- \t\t\t\t\\!\t\t\t\t\t\t\t# Images start with !\n\
- \t\t\t\t(\\[)((?<square>[^\\[\\]\\\\]|\\\\.|\\[\\g<square>*+\\])*+)(\\])\t\n\
- \t\t\t\t\t\t\t\t\t\t\t# Match the link text.\n\
- \t\t\t\t([ ])?\t\t\t\t\t\t# Space not allowed\n\
- \t\t\t\t(\\()\t\t\t\t\t\t# Opening paren for url\n\
- \t\t\t\t\t(<?)(\\S+?)(>?)\t\t\t# The url\n\
- \t\t\t\t\t[ \\t]*\t\t\t\t\t# Optional whitespace\n\
- \t\t\t\t\t(?:\n\
- \t\t\t\t\t\t ((\\().+?(\\)))\t\t# Match title in parens\xE2\x80\xA6\n\
- \t\t\t\t\t\t| ((\").+?(\"))\t\t# or in quotes.\n\
- \t\t\t\t\t)?\t\t\t\t\t\t# Title is optional\n\
- \t\t\t\t\t\\s*\t\t\t\t\t\t# Optional whitespace\n\
- \t\t\t\t(\\))\n\
- \t\t\t )"
- image-ref:
- name: meta.image.reference.markdown
- captures:
- "6":
- name: constant.other.reference.link.markdown
- "7":
- name: punctuation.definition.constant.markdown
- "1":
- name: punctuation.definition.string.begin.markdown
- "2":
- name: string.other.link.description.markdown
- "4":
- name: punctuation.definition.string.begin.markdown
- "5":
- name: punctuation.definition.constant.markdown
- match: \!(\[)((?<square>[^\[\]\\]|\\.|\[\g<square>*+\])*+)(\])[ ]?(\[)(.*?)(\])
- escape:
- name: constant.character.escape.markdown
- match: \\[-`*_#+.!(){}\[\]\\>]
- bracket:
- name: meta.other.valid-bracket.markdown
- match: <(?![a-z/?\$!])
- comment: "\n\
- \t\t\t\tMarkdown will convert this for us. We match it so that the\n\
- \t\t\t\tHTML grammar will not mark it up as invalid.\n\
- \t\t\t"
- list-paragraph:
- patterns:
- - name: meta.paragraph.list.markdown
- begin: \G\s+(?=\S)
- end: ^\s*$
- patterns:
- - include: "#inline"
- link-ref-literal:
- name: meta.link.reference.literal.markdown
- captures:
- "6":
- name: punctuation.definition.constant.end.markdown
- "1":
- name: punctuation.definition.string.begin.markdown
- "2":
- name: string.other.link.title.markdown
- "4":
- name: punctuation.definition.string.end.markdown
- "5":
- name: punctuation.definition.constant.begin.markdown
- match: (\[)((?<square>[^\[\]\\]|\\.|\[\g<square>*+\])*+)(\])[ ]?(\[)(\])
- link-email:
- name: meta.link.email.lt-gt.markdown
- captures:
- "1":
- name: punctuation.definition.link.markdown
- "2":
- name: markup.underline.link.markdown
- "4":
- name: punctuation.definition.link.markdown
- match: (<)((?:mailto:)?[-.\w]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)(>)
- inline:
- patterns:
- - include: "#escape"
- - include: "#ampersand"
- - include: "#bracket"
- - include: "#raw"
- - include: "#bold"
- - include: "#italic"
- - include: "#line-break"
- - include: "#image-inline"
- - include: "#link-inline"
- - include: "#link-inet"
- - include: "#link-email"
- - include: "#image-ref"
- - include: "#link-ref-literal"
- - include: "#link-ref"
- block_quote:
- name: markup.quote.markdown
- begin: \G[ ]{,3}(>)(?!$)[ ]?
- beginCaptures:
- "1":
- name: punctuation.definition.blockquote.markdown
- end: |-
- (?x)^
- (?= \s*$
- | [ ]{,3}(?<marker>[-*_])([ ]{,2}\g<marker>){2,}[ \t]*+$
- | [ ]{,3}>.
- )
- patterns:
- - begin: |-
- (?x)\G
- (?= [ ]{,3}>.
- )
- end: ^
- patterns:
- - include: "#block_quote"
- - begin: |-
- (?x)\G
- (?= ([ ]{4}|\t)
- | [#]{1,6}\s*+
- | [ ]{,3}(?<marker>[-*_])([ ]{,2}\g<marker>){2,}[ \t]*+$
- )
- applyEndPatternLast: 1
- end: ^
- patterns:
- - include: "#block_raw"
- - include: "#heading"
- - include: "#separator"
- - begin: |-
- (?x)\G
- (?! $
- | [ ]{,3}>.
- | ([ ]{4}|\t)
- | [#]{1,6}\s*+
- | [ ]{,3}(?<marker>[-*_])([ ]{,2}\g<marker>){2,}[ \t]*+$
- )
- end: $|(?<=\n)
- patterns:
- - include: "#inline"
- comment: "\n\
- \t\t\t\tWe terminate the block quote when seeing an empty line, a\n\
- \t\t\t\tseparator or a line with leading > characters. The latter is\n\
- \t\t\t\tto \xE2\x80\x9Creset\xE2\x80\x9D the quote level for quoted lines.\n\
- \t\t\t"
- link-ref:
- name: meta.link.reference.markdown
- captures:
- "6":
- name: constant.other.reference.link.markdown
- "7":
- name: punctuation.definition.constant.end.markdown
- "1":
- name: punctuation.definition.string.begin.markdown
- "2":
- name: string.other.link.title.markdown
- "4":
- name: punctuation.definition.string.end.markdown
- "5":
- name: punctuation.definition.constant.begin.markdown
- match: (\[)((?<square>[^\[\]\\]|\\.|\[\g<square>*+\])*+)(\])[ ]?(\[)([^\]]*+)(\])
- block_raw:
- name: markup.raw.block.markdown
- match: \G([ ]{4}|\t).*$\n?
- separator:
- name: meta.separator.markdown
- match: \G[ ]{,3}([-*_])([ ]{,2}\1){2,}[ \t]*$\n?
- link-inline:
- name: meta.link.inline.markdown
- captures:
- "6":
- name: punctuation.definition.metadata.markdown
- "11":
- name: punctuation.definition.string.begin.markdown
- "7":
- name: punctuation.definition.link.markdown
- "12":
- name: punctuation.definition.string.end.markdown
- "8":
- name: markup.underline.link.markdown
- "13":
- name: string.other.link.description.title.markdown
- "9":
- name: punctuation.definition.link.markdown
- "14":
- name: punctuation.definition.string.begin.markdown
- "15":
- name: punctuation.definition.string.end.markdown
- "16":
- name: punctuation.definition.metadata.markdown
- "1":
- name: punctuation.definition.string.begin.markdown
- "2":
- name: string.other.link.title.markdown
- "4":