highlighting-kate 0.5.1 → 0.5.2
raw patch · 31 files changed
+1080/−1038 lines, 31 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- Text/Highlighting/Kate/Syntax.hs +5/−5
- Text/Highlighting/Kate/Syntax/Bash.hs +5/−5
- Text/Highlighting/Kate/Syntax/C.hs +3/−1
- Text/Highlighting/Kate/Syntax/Clojure.hs +81/−17
- Text/Highlighting/Kate/Syntax/Coffee.hs +197/−0
- Text/Highlighting/Kate/Syntax/Coffeescript.hs +0/−197
- Text/Highlighting/Kate/Syntax/Cpp.hs +1/−1
- Text/Highlighting/Kate/Syntax/Doxygen.hs +48/−24
- Text/Highlighting/Kate/Syntax/Fortran.hs +1/−1
- Text/Highlighting/Kate/Syntax/Go.hs +27/−17
- Text/Highlighting/Kate/Syntax/Latex.hs +1/−1
- Text/Highlighting/Kate/Syntax/Prolog.hs +7/−3
- Text/Highlighting/Kate/Syntax/R.hs +21/−26
- Text/Highlighting/Kate/Syntax/Ruby.hs +3/−3
- Text/Highlighting/Kate/Syntax/Tcl.hs +2/−2
- changelog +6/−0
- highlighting-kate.cabal +3/−3
- xml/bash.xml +4/−4
- xml/c.xml +1/−0
- xml/clojure.xml +60/−12
- xml/coffee.xml +267/−0
- xml/coffeescript.xml +0/−267
- xml/cpp.xml +3/−0
- xml/doxygen.xml +233/−400
- xml/fortran.xml +1/−1
- xml/go.xml +40/−20
- xml/latex.xml +8/−7
- xml/prolog.xml +3/−1
- xml/r.xml +16/−16
- xml/ruby.xml +2/−2
- xml/tcl.xml +31/−2
Text/Highlighting/Kate/Syntax.hs view
@@ -30,7 +30,7 @@ import qualified Text.Highlighting.Kate.Syntax.Changelog as Changelog import qualified Text.Highlighting.Kate.Syntax.Clojure as Clojure import qualified Text.Highlighting.Kate.Syntax.Cmake as Cmake-import qualified Text.Highlighting.Kate.Syntax.Coffeescript as Coffeescript+import qualified Text.Highlighting.Kate.Syntax.Coffee as Coffee import qualified Text.Highlighting.Kate.Syntax.Coldfusion as Coldfusion import qualified Text.Highlighting.Kate.Syntax.Commonlisp as Commonlisp import qualified Text.Highlighting.Kate.Syntax.Cpp as Cpp@@ -108,11 +108,11 @@ -- | List of supported languages. languages :: [String]-languages = ["Actionscript","Ada","Alert","Alert_indent","Apache","Asn1","Asp","Awk","Bash","Bibtex","Boo","C","Changelog","Clojure","Cmake","Coffeescript","Coldfusion","Commonlisp","Cpp","Cs","Css","D","Diff","Djangotemplate","Doxygen","Dtd","Eiffel","Email","Erlang","Fortran","Fsharp","Gnuassembler","Go","Haskell","Haxe","Html","Ini","Java","Javadoc","Javascript","Json","Jsp","Latex","Lex","LiterateHaskell","Lua","Makefile","Mandoc","Matlab","Maxima","Metafont","Mips","Modula2","Modula3","Monobasic","Nasm","Noweb","Objectivec","Objectivecpp","Ocaml","Octave","Pascal","Perl","Php","Pike","Postscript","Prolog","Python","R","Relaxngcompact","Rhtml","Ruby","Scala","Scheme","Sci","Sed","Sgml","Sql","SqlMysql","SqlPostgresql","Tcl","Texinfo","Verilog","Vhdl","Xml","Xorg","Xslt","Xul","Yacc","Yaml"]+languages = ["Actionscript","Ada","Alert","Alert_indent","Apache","Asn1","Asp","Awk","Bash","Bibtex","Boo","C","Changelog","Clojure","Cmake","Coffee","Coldfusion","Commonlisp","Cpp","Cs","Css","D","Diff","Djangotemplate","Doxygen","Dtd","Eiffel","Email","Erlang","Fortran","Fsharp","Gnuassembler","Go","Haskell","Haxe","Html","Ini","Java","Javadoc","Javascript","Json","Jsp","Latex","Lex","LiterateHaskell","Lua","Makefile","Mandoc","Matlab","Maxima","Metafont","Mips","Modula2","Modula3","Monobasic","Nasm","Noweb","Objectivec","Objectivecpp","Ocaml","Octave","Pascal","Perl","Php","Pike","Postscript","Prolog","Python","R","Relaxngcompact","Rhtml","Ruby","Scala","Scheme","Sci","Sed","Sgml","Sql","SqlMysql","SqlPostgresql","Tcl","Texinfo","Verilog","Vhdl","Xml","Xorg","Xslt","Xul","Yacc","Yaml"] -- | List of language extensions. languageExtensions :: [(String, String)]-languageExtensions = [("Actionscript", Actionscript.syntaxExtensions), ("Ada", Ada.syntaxExtensions), ("Alert", Alert.syntaxExtensions), ("Alert_indent", Alert_indent.syntaxExtensions), ("Apache", Apache.syntaxExtensions), ("Asn1", Asn1.syntaxExtensions), ("Asp", Asp.syntaxExtensions), ("Awk", Awk.syntaxExtensions), ("Bash", Bash.syntaxExtensions), ("Bibtex", Bibtex.syntaxExtensions), ("Boo", Boo.syntaxExtensions), ("C", C.syntaxExtensions), ("Changelog", Changelog.syntaxExtensions), ("Clojure", Clojure.syntaxExtensions), ("Cmake", Cmake.syntaxExtensions), ("Coffeescript", Coffeescript.syntaxExtensions), ("Coldfusion", Coldfusion.syntaxExtensions), ("Commonlisp", Commonlisp.syntaxExtensions), ("Cpp", Cpp.syntaxExtensions), ("Cs", Cs.syntaxExtensions), ("Css", Css.syntaxExtensions), ("D", D.syntaxExtensions), ("Diff", Diff.syntaxExtensions), ("Djangotemplate", Djangotemplate.syntaxExtensions), ("Doxygen", Doxygen.syntaxExtensions), ("Dtd", Dtd.syntaxExtensions), ("Eiffel", Eiffel.syntaxExtensions), ("Email", Email.syntaxExtensions), ("Erlang", Erlang.syntaxExtensions), ("Fortran", Fortran.syntaxExtensions), ("Fsharp", Fsharp.syntaxExtensions), ("Gnuassembler", Gnuassembler.syntaxExtensions), ("Go", Go.syntaxExtensions), ("Haskell", Haskell.syntaxExtensions), ("Haxe", Haxe.syntaxExtensions), ("Html", Html.syntaxExtensions), ("Ini", Ini.syntaxExtensions), ("Java", Java.syntaxExtensions), ("Javadoc", Javadoc.syntaxExtensions), ("Javascript", Javascript.syntaxExtensions), ("Json", Json.syntaxExtensions), ("Jsp", Jsp.syntaxExtensions), ("Latex", Latex.syntaxExtensions), ("Lex", Lex.syntaxExtensions), ("LiterateHaskell", LiterateHaskell.syntaxExtensions), ("Lua", Lua.syntaxExtensions), ("Makefile", Makefile.syntaxExtensions), ("Mandoc", Mandoc.syntaxExtensions), ("Matlab", Matlab.syntaxExtensions), ("Maxima", Maxima.syntaxExtensions), ("Metafont", Metafont.syntaxExtensions), ("Mips", Mips.syntaxExtensions), ("Modula2", Modula2.syntaxExtensions), ("Modula3", Modula3.syntaxExtensions), ("Monobasic", Monobasic.syntaxExtensions), ("Nasm", Nasm.syntaxExtensions), ("Noweb", Noweb.syntaxExtensions), ("Objectivec", Objectivec.syntaxExtensions), ("Objectivecpp", Objectivecpp.syntaxExtensions), ("Ocaml", Ocaml.syntaxExtensions), ("Octave", Octave.syntaxExtensions), ("Pascal", Pascal.syntaxExtensions), ("Perl", Perl.syntaxExtensions), ("Php", Php.syntaxExtensions), ("Pike", Pike.syntaxExtensions), ("Postscript", Postscript.syntaxExtensions), ("Prolog", Prolog.syntaxExtensions), ("Python", Python.syntaxExtensions), ("R", R.syntaxExtensions), ("Relaxngcompact", Relaxngcompact.syntaxExtensions), ("Rhtml", Rhtml.syntaxExtensions), ("Ruby", Ruby.syntaxExtensions), ("Scala", Scala.syntaxExtensions), ("Scheme", Scheme.syntaxExtensions), ("Sci", Sci.syntaxExtensions), ("Sed", Sed.syntaxExtensions), ("Sgml", Sgml.syntaxExtensions), ("Sql", Sql.syntaxExtensions), ("SqlMysql", SqlMysql.syntaxExtensions), ("SqlPostgresql", SqlPostgresql.syntaxExtensions), ("Tcl", Tcl.syntaxExtensions), ("Texinfo", Texinfo.syntaxExtensions), ("Verilog", Verilog.syntaxExtensions), ("Vhdl", Vhdl.syntaxExtensions), ("Xml", Xml.syntaxExtensions), ("Xorg", Xorg.syntaxExtensions), ("Xslt", Xslt.syntaxExtensions), ("Xul", Xul.syntaxExtensions), ("Yacc", Yacc.syntaxExtensions), ("Yaml", Yaml.syntaxExtensions)]+languageExtensions = [("Actionscript", Actionscript.syntaxExtensions), ("Ada", Ada.syntaxExtensions), ("Alert", Alert.syntaxExtensions), ("Alert_indent", Alert_indent.syntaxExtensions), ("Apache", Apache.syntaxExtensions), ("Asn1", Asn1.syntaxExtensions), ("Asp", Asp.syntaxExtensions), ("Awk", Awk.syntaxExtensions), ("Bash", Bash.syntaxExtensions), ("Bibtex", Bibtex.syntaxExtensions), ("Boo", Boo.syntaxExtensions), ("C", C.syntaxExtensions), ("Changelog", Changelog.syntaxExtensions), ("Clojure", Clojure.syntaxExtensions), ("Cmake", Cmake.syntaxExtensions), ("Coffee", Coffee.syntaxExtensions), ("Coldfusion", Coldfusion.syntaxExtensions), ("Commonlisp", Commonlisp.syntaxExtensions), ("Cpp", Cpp.syntaxExtensions), ("Cs", Cs.syntaxExtensions), ("Css", Css.syntaxExtensions), ("D", D.syntaxExtensions), ("Diff", Diff.syntaxExtensions), ("Djangotemplate", Djangotemplate.syntaxExtensions), ("Doxygen", Doxygen.syntaxExtensions), ("Dtd", Dtd.syntaxExtensions), ("Eiffel", Eiffel.syntaxExtensions), ("Email", Email.syntaxExtensions), ("Erlang", Erlang.syntaxExtensions), ("Fortran", Fortran.syntaxExtensions), ("Fsharp", Fsharp.syntaxExtensions), ("Gnuassembler", Gnuassembler.syntaxExtensions), ("Go", Go.syntaxExtensions), ("Haskell", Haskell.syntaxExtensions), ("Haxe", Haxe.syntaxExtensions), ("Html", Html.syntaxExtensions), ("Ini", Ini.syntaxExtensions), ("Java", Java.syntaxExtensions), ("Javadoc", Javadoc.syntaxExtensions), ("Javascript", Javascript.syntaxExtensions), ("Json", Json.syntaxExtensions), ("Jsp", Jsp.syntaxExtensions), ("Latex", Latex.syntaxExtensions), ("Lex", Lex.syntaxExtensions), ("LiterateHaskell", LiterateHaskell.syntaxExtensions), ("Lua", Lua.syntaxExtensions), ("Makefile", Makefile.syntaxExtensions), ("Mandoc", Mandoc.syntaxExtensions), ("Matlab", Matlab.syntaxExtensions), ("Maxima", Maxima.syntaxExtensions), ("Metafont", Metafont.syntaxExtensions), ("Mips", Mips.syntaxExtensions), ("Modula2", Modula2.syntaxExtensions), ("Modula3", Modula3.syntaxExtensions), ("Monobasic", Monobasic.syntaxExtensions), ("Nasm", Nasm.syntaxExtensions), ("Noweb", Noweb.syntaxExtensions), ("Objectivec", Objectivec.syntaxExtensions), ("Objectivecpp", Objectivecpp.syntaxExtensions), ("Ocaml", Ocaml.syntaxExtensions), ("Octave", Octave.syntaxExtensions), ("Pascal", Pascal.syntaxExtensions), ("Perl", Perl.syntaxExtensions), ("Php", Php.syntaxExtensions), ("Pike", Pike.syntaxExtensions), ("Postscript", Postscript.syntaxExtensions), ("Prolog", Prolog.syntaxExtensions), ("Python", Python.syntaxExtensions), ("R", R.syntaxExtensions), ("Relaxngcompact", Relaxngcompact.syntaxExtensions), ("Rhtml", Rhtml.syntaxExtensions), ("Ruby", Ruby.syntaxExtensions), ("Scala", Scala.syntaxExtensions), ("Scheme", Scheme.syntaxExtensions), ("Sci", Sci.syntaxExtensions), ("Sed", Sed.syntaxExtensions), ("Sgml", Sgml.syntaxExtensions), ("Sql", Sql.syntaxExtensions), ("SqlMysql", SqlMysql.syntaxExtensions), ("SqlPostgresql", SqlPostgresql.syntaxExtensions), ("Tcl", Tcl.syntaxExtensions), ("Texinfo", Texinfo.syntaxExtensions), ("Verilog", Verilog.syntaxExtensions), ("Vhdl", Vhdl.syntaxExtensions), ("Xml", Xml.syntaxExtensions), ("Xorg", Xorg.syntaxExtensions), ("Xslt", Xslt.syntaxExtensions), ("Xul", Xul.syntaxExtensions), ("Yacc", Yacc.syntaxExtensions), ("Yaml", Yaml.syntaxExtensions)] -- | Returns a list of languages appropriate for the given file extension. languagesByExtension :: String -> [String]@@ -128,7 +128,7 @@ -- extension (if unique). -- The parsers read the input lazily and parse line by line; -- results are returned immediately.--- Supported languages: @actionscript@, @ada@, @alert@, @alert_indent@, @apache@, @asn1@, @asp@, @awk@, @bash@, @bibtex@, @boo@, @c@, @changelog@, @clojure@, @cmake@, @coffeescript@, @coldfusion@, @commonlisp@, @cpp@, @cs@, @css@, @d@, @diff@, @djangotemplate@, @doxygen@, @dtd@, @eiffel@, @email@, @erlang@, @fortran@, @fsharp@, @gnuassembler@, @go@, @haskell@, @haxe@, @html@, @ini@, @java@, @javadoc@, @javascript@, @json@, @jsp@, @latex@, @lex@, @literatehaskell@, @lua@, @makefile@, @mandoc@, @matlab@, @maxima@, @metafont@, @mips@, @modula2@, @modula3@, @monobasic@, @nasm@, @noweb@, @objectivec@, @objectivecpp@, @ocaml@, @octave@, @pascal@, @perl@, @php@, @pike@, @postscript@, @prolog@, @python@, @r@, @relaxngcompact@, @rhtml@, @ruby@, @scala@, @scheme@, @sci@, @sed@, @sgml@, @sql@, @sqlmysql@, @sqlpostgresql@, @tcl@, @texinfo@, @verilog@, @vhdl@, @xml@, @xorg@, @xslt@, @xul@, @yacc@, @yaml@.+-- Supported languages: @actionscript@, @ada@, @alert@, @alert_indent@, @apache@, @asn1@, @asp@, @awk@, @bash@, @bibtex@, @boo@, @c@, @changelog@, @clojure@, @cmake@, @coffee@, @coldfusion@, @commonlisp@, @cpp@, @cs@, @css@, @d@, @diff@, @djangotemplate@, @doxygen@, @dtd@, @eiffel@, @email@, @erlang@, @fortran@, @fsharp@, @gnuassembler@, @go@, @haskell@, @haxe@, @html@, @ini@, @java@, @javadoc@, @javascript@, @json@, @jsp@, @latex@, @lex@, @literatehaskell@, @lua@, @makefile@, @mandoc@, @matlab@, @maxima@, @metafont@, @mips@, @modula2@, @modula3@, @monobasic@, @nasm@, @noweb@, @objectivec@, @objectivecpp@, @ocaml@, @octave@, @pascal@, @perl@, @php@, @pike@, @postscript@, @prolog@, @python@, @r@, @relaxngcompact@, @rhtml@, @ruby@, @scala@, @scheme@, @sci@, @sed@, @sgml@, @sql@, @sqlmysql@, @sqlpostgresql@, @tcl@, @texinfo@, @verilog@, @vhdl@, @xml@, @xorg@, @xslt@, @xul@, @yacc@, @yaml@. highlightAs :: String -- ^ Language syntax (e.g. "haskell") or extension (e.g. "hs"). -> String -- ^ Source code to highlight -> [SourceLine] -- ^ List of highlighted source lines@@ -155,7 +155,7 @@ "changelog" -> Changelog.highlight "clojure" -> Clojure.highlight "cmake" -> Cmake.highlight- "coffeescript" -> Coffeescript.highlight+ "coffee" -> Coffee.highlight "coldfusion" -> Coldfusion.highlight "commonlisp" -> Commonlisp.highlight "cpp" -> Cpp.highlight
Text/Highlighting/Kate/Syntax/Bash.hs view
@@ -1,5 +1,5 @@ {- This module was generated from data in the Kate syntax- highlighting file bash.xml, version 2.12, by Wilbert Berendsen (wilbert@kde.nl) -}+ highlighting file bash.xml, version 2.14, by Wilbert Berendsen (wilbert@kde.nl) -} module Text.Highlighting.Kate.Syntax.Bash (highlight, parseExpression, syntaxName, syntaxExtensions)@@ -123,7 +123,7 @@ regex_'5c'7b'28'3f'3d'28'24'7c'5cs'29'29 = compileRegex "\\{(?=($|\\s))" regex_'5cbdo'28'3f'21'5b'5cw'24'2b'2d'5d'29 = compileRegex "\\bdo(?![\\w$+-])" regex_'5cbdone'28'3f'21'5b'5cw'24'2b'2d'5d'29 = compileRegex "\\bdone(?![\\w$+-])"-regex_'5cbif_'28'3f'21'5b'5cw'24'2b'2d'5d'29 = compileRegex "\\bif (?![\\w$+-])"+regex_'5cbif'28'3f'3d'28'24'7c'5cs'29'29 = compileRegex "\\bif(?=($|\\s))" regex_'5cbfi'28'3f'21'5b'5cw'24'2b'2d'5d'29 = compileRegex "\\bfi(?![\\w$+-])" regex_'5cbcase'28'3f'21'5b'5cw'24'2b'2d'5d'29 = compileRegex "\\bcase(?![\\w$+-])" regex_'2d'5bA'2dZa'2dz0'2d9'5d'5bA'2dZa'2dz0'2d9'5f'5d'2a = compileRegex "-[A-Za-z0-9][A-Za-z0-9_]*"@@ -257,7 +257,7 @@ <|> ((pRegExpr regex_'5cbdone'28'3f'21'5b'5cw'24'2b'2d'5d'29 >>= withAttribute KeywordTok)) <|>- ((pRegExpr regex_'5cbif_'28'3f'21'5b'5cw'24'2b'2d'5d'29 >>= withAttribute KeywordTok))+ ((pRegExpr regex_'5cbif'28'3f'3d'28'24'7c'5cs'29'29 >>= withAttribute KeywordTok)) <|> ((pRegExpr regex_'5cbfi'28'3f'21'5b'5cw'24'2b'2d'5d'29 >>= withAttribute KeywordTok)) <|>@@ -311,9 +311,9 @@ ((pRegExpr regex_'2f'28'5b'5cw'5f'40'2e'25'2a'3f'2b'2d'5d'7c'5c'5c_'29'2a'28'3f'3d'28'5b'5cs'2f'29'3a'3b'24'60'27'22'5d'7c'24'29'29 >>= withAttribute NormalTok))) parseRules "FindStrings" =- (((pDetect2Chars False '\\' '\'' >>= withAttribute DataTypeTok))+ (((pDetect2Chars False '*' '\'' >>= withAttribute DataTypeTok)) <|>- ((pDetect2Chars False '\\' '"' >>= withAttribute DataTypeTok))+ ((pDetect2Chars False '*' '"' >>= withAttribute DataTypeTok)) <|> ((pDetectChar False '\'' >>= withAttribute StringTok) >>~ pushContext "StringSQ") <|>
Text/Highlighting/Kate/Syntax/C.hs view
@@ -180,7 +180,9 @@ <|> ((Text.Highlighting.Kate.Syntax.Doxygen.parseExpression >>= ((withAttribute OtherTok) . snd))) <|>- ((pDetect2Chars False '/' '*' >>= withAttribute CommentTok) >>~ pushContext "Commentar/Preprocessor"))+ ((pDetect2Chars False '/' '*' >>= withAttribute CommentTok) >>~ pushContext "Commentar/Preprocessor")+ <|>+ ((pDetect2Chars False '/' '/' >>= withAttribute CommentTok) >>~ pushContext "Commentar 1")) parseRules "Define" = ((pLineContinue >>= withAttribute OtherTok))
Text/Highlighting/Kate/Syntax/Clojure.hs view
@@ -1,5 +1,5 @@ {- This module was generated from data in the Kate syntax- highlighting file clojure.xml, version 1.05, by Dominik Haumann (dhdev@gmx.de) -}+ highlighting file clojure.xml, version 2, by Dominik Haumann [lisp] modified for clojure by Caspar Hasenclever -} module Text.Highlighting.Kate.Syntax.Clojure (highlight, parseExpression, syntaxName, syntaxExtensions)@@ -34,22 +34,29 @@ st <- getState let oldLang = synStLanguage st setState $ st { synStLanguage = "Clojure" }- context <- currentContext <|> (pushContext "Normal" >> currentContext)+ context <- currentContext <|> (pushContext "Level0" >> currentContext) result <- parseRules context optional $ eof >> pEndLine updateState $ \st -> st { synStLanguage = oldLang } return result -startingState = SyntaxState {synStContexts = fromList [("Clojure",["Normal"])], synStLanguage = "Clojure", synStLineNumber = 0, synStPrevChar = '\n', synStPrevNonspace = False, synStCaseSensitive = True, synStKeywordCaseSensitive = True, synStCaptures = []}+startingState = SyntaxState {synStContexts = fromList [("Clojure",["Level0"])], synStLanguage = "Clojure", synStLineNumber = 0, synStPrevChar = '\n', synStPrevNonspace = False, synStCaseSensitive = True, synStKeywordCaseSensitive = True, synStCaptures = []} pEndLine = do updateState $ \st -> st{ synStPrevNonspace = False } context <- currentContext case context of- "Normal" -> return ()+ "Level0" -> return ()+ "Default" -> return () "function_decl" -> return () "SpecialNumber" -> (popContext) >> pEndLine "String" -> return ()+ "Level1" -> return ()+ "Level2" -> return ()+ "Level3" -> return ()+ "Level4" -> return ()+ "Level5" -> return ()+ "Level6" -> return () _ -> return () withAttribute attr txt = do@@ -63,32 +70,33 @@ parseRules context <|> (pDefault >>= withAttribute (fromMaybe NormalTok $ lookup context defaultAttributes)) list_definitions = Set.fromList $ words $ "def def- defalias defhinted definline defmacro defmacro- defmethod defmulti defn defn- defnk defn-memo defonce defonce- defprotocol defrecord defstruct defstruct- deftest deftest- deftype defunbound defunbound- defvar defvar-"-list_keywords = Set.fromList $ words $ "< <= = == > >= - -> ->> / . .. * + accessor aclone add-classpath add-watcher agent agent-errors aget alength alias all-ns alter alter-meta! alter-var-root amap ancestors and append-child apply apply-template are areduce array-map aset aset-boolean aset-byte aset-char aset-double aset-float aset-int aset-long aset-short assert assert-any assert-expr assert-predicate assoc assoc! associative? assoc-in atom atom? attrs await await1 await-for bases bean bigdec bigint binding bit-and bit-and-not bit-clear bit-flip bit-not bit-or bit-set bit-shift-left bit-shift-right bit-test bit-xor boolean boolean-array booleans bound-fn bound-fn* branch? butlast byte byte-array bytes case cast catch char char? char-array char-escape-string char-name-string chars children chunk chunk-append chunk-buffer chunk-cons chunked-seq? chunk-first chunk-next chunk-rest class class? clear-agent-errors clojure-version coll? collection-tag comment commute comp comparator compare compare-and-set! compile complement compose-fixtures concat cond condp conj conj! cons constantly construct-proxy contains? content content-handler count counted? create-ns create-struct cycle dec decimal? declare delay delay? deliver deref derive descendants destructure difference disj disj! dissoc dissoc! distinct distinct? do doall doc dorun doseq dosync do-template dotimes doto double double-array doubles down drop drop-last drop-while e edit element emit emit-element empty empty? end? ensure enumeration-seq eval even? every? extend extenders extend-protocol extends? extend-type false? ffirst file-position file-seq filter finally find find-doc find-ns find-var first float float? float-array floats flush fn fn? fnext for force format function? future future? future-call future-cancel future-cancelled? future-done? gen-and-load-class gen-and-save-class gen-class gen-interface gensym get get-child get-child-count get-in get-method get-possibly-unbound-var get-proxy-class get-thread-bindings get-validator handle handler-case hash hash-map hash-set identical? identity if if-let ifn? if-not import inc inc-report-counter index init-proxy in-ns insert-child insert-left insert-right inspect inspect-table inspect-tree instance? int int-array integer? interleave intern interpose intersection into into-array ints io! is isa? is-leaf iterate iterator-seq join join-fixtures juxt key keys keyword keyword? keywordize-keys last lazy-cat lazy-seq left leftmost lefts let letfn line-seq list list* list? list-model list-provider load loaded-libs load-file load-reader load-script load-string locking long long-array longs loop macroexpand macroexpand-1 macroexpand-all main make-array make-hierarchy make-node map map? mapcat map-invert max max-key memfn memoize merge merge-with meta methods method-sig min min-key mod name namespace neg? newline next nfirst nil? nnext node not not= not-any? not-empty not-every? ns ns-aliases ns-imports ns-interns ns-map ns-name ns-publics ns-refers ns-resolve ns-unalias ns-unmap nth nthnext num number? odd? or parents partial partition path pcalls peek persistent! pmap pop pop! pop-thread-bindings pos? postwalk postwalk-demo postwalk-replace pr prefer-method prefers prev prewalk prewalk-demo prewalk-replace primitives-classnames print print-cause-trace print-ctor print-doc print-dup printf println println-str print-method print-namespace-doc print-simple print-special-doc print-stack-trace print-str print-throwable print-trace-element prn prn-str project promise proxy proxy-call-with-super proxy-mappings proxy-name proxy-super pr-str push-thread-bindings pvalues quot rand rand-int range ratio? rational? rationalize read read-line read-string recur reduce ref refer refer-clojure ref-history-count re-find ref-max-history ref-min-history ref-set re-groups reify release-pending-sends rem re-matcher re-matches remove remove-method remove-ns remove-watcher rename rename-keys re-pattern repeat repeatedly repl replace repl-caught repl-exception replicate repl-prompt repl-read report require re-seq reset! reset-meta! resolve rest resultset-seq reverse reversible? right rightmost rights root rseq rsubseq run-all-tests run-tests satisfies? second select select-keys send send-off seq seq? seque sequence sequential? seq-zip set set? set-test set-validator! short short-array shorts shutdown-agents skip-if-eol skip-whitespace slurp some sort sort-by sorted? sorted-map sorted-map-by sorted-set sorted-set-by special-form-anchor special-symbol? split-at split-with str stream? string? stringify-keys struct struct-map subs subseq subvec successful? supers swap! symbol symbol? sync syntax-symbol-anchor take take-last take-nth take-while test test-all-vars testing testing-contexts-str testing-vars-str test-ns test-var the-ns throw time to-array to-array-2d trampoline transient tree-seq true? try try-expr type unchecked-add unchecked-dec unchecked-divide unchecked-inc unchecked-multiply unchecked-negate unchecked-remainder unchecked-subtract underive unimport union unquote unquote-splicing up update-in update-proxy use use-fixtures val vals var? var-get var-set vary-meta vec vector vector? walk when when-first when-let when-not while with-bindings with-bindings* with-in-str with-loading-context with-local-vars with-meta with-open with-out-str with-precision with-test with-test-out xml-seq"+list_keywords = Set.fromList $ words $ "< <= = == > >= - -> ->> / . .. * + accessor aclone add-classpath add-watcher agent agent-errors aget alength alias all-ns alter alter-meta! alter-var-root amap ancestors and append-child apply apply-template are areduce array-map aset aset-boolean aset-byte aset-char aset-double aset-float aset-int aset-long aset-short assert assert-any assert-expr assert-predicate assoc assoc! associative? assoc-in atom atom? attrs await await1 await-for bases bean bigdec bigint binding bit-and bit-and-not bit-clear bit-flip bit-not bit-or bit-set bit-shift-left bit-shift-right bit-test bit-xor boolean boolean-array booleans bound-fn bound-fn* branch? butlast byte byte-array bytes case cast catch char char? char-array char-escape-string char-name-string chars children chunk chunk-append chunk-buffer chunk-cons chunked-seq? chunk-first chunk-next chunk-rest class class? clear-agent-errors clojure-version coll? collection-tag comment commute comp comparator compare compare-and-set! compile complement compose-fixtures concat cond condp conj conj! cons constantly construct-proxy contains? content content-handler count counted? create-ns create-struct cycle dec decimal? declare delay delay? deliver deref derive descendants destructure difference disj disj! dissoc dissoc! distinct distinct? do doall doc dorun doseq dosync do-template dotimes doto double double-array doubles down drop drop-last drop-while e edit element emit emit-element empty empty? end? ensure enumeration-seq eval even? every? extend extenders extend-protocol extends? extend-type false? ffirst file-position file-seq filter finally find find-doc find-ns find-var first float float? float-array floats flush fn fn? fnext for force format function? future future? future-call future-cancel future-cancelled? future-done? gen-and-load-class gen-and-save-class gen-class gen-interface gensym get get-child get-child-count get-in get-method get-possibly-unbound-var get-proxy-class get-thread-bindings get-validator handle handler-case hash hash-map hash-set identical? identity if if-let ifn? if-not import inc inc-report-counter index init-proxy in-ns insert-child insert-left insert-right inspect inspect-table inspect-tree instance? int int-array integer? interleave intern interpose intersection into into-array ints io! is isa? is-leaf iterate iterator-seq join join-fixtures juxt key keys keyword keyword? keywordize-keys last lazy-cat lazy-seq left leftmost lefts let letfn line-seq list list* list? list-model list-provider load loaded-libs load-file load-reader load-script load-string locking long long-array longs loop macroexpand macroexpand-1 macroexpand-all main make-array make-hierarchy make-node map map? mapcat map-invert max max-key memfn memoize merge merge-with meta methods method-sig min min-key mod name namespace neg? newline next nfirst nil? nnext node not not= not-any? not-empty not-every? ns ns-aliases ns-imports ns-interns ns-map ns-name ns-publics ns-refers ns-resolve ns-unalias ns-unmap nth nthnext num number? odd? or parents partial partition path pcalls peek persistent! pmap pop pop! pop-thread-bindings pos? postwalk postwalk-demo postwalk-replace pr prefer-method prefers prev prewalk prewalk-demo prewalk-replace primitives-classnames print print-cause-trace print-ctor print-doc print-dup printf println println-str print-method print-namespace-doc print-simple print-special-doc print-stack-trace print-str print-throwable print-trace-element prn prn-str project promise proxy proxy-call-with-super proxy-mappings proxy-name proxy-super pr-str push-thread-bindings pvalues quot rand rand-int range ratio? rational? rationalize read read-line read-string recur reduce ref refer refer-clojure ref-history-count re-find ref-max-history ref-min-history ref-set re-groups reify release-pending-sends rem re-matcher re-matches remove remove-method remove-ns remove-watcher rename rename-keys re-pattern repeat repeatedly repl replace repl-caught repl-exception replicate repl-prompt repl-read report require re-seq reset! reset-meta! resolve rest resultset-seq reverse reversible? right rightmost rights root rseq rsubseq run-all-tests run-tests satisfies? second select select-keys send send-off seq seq? seque sequence sequential? seq-zip set set? set-test set-validator! short short-array shorts shutdown-agents skip-if-eol skip-whitespace slurp some sort sort-by sorted? sorted-map sorted-map-by sorted-set sorted-set-by special-form-anchor special-symbol? split-at split-with str stream? string? stringify-keys struct struct-map subs subseq subvec successful? supers swap! symbol symbol? sync syntax-symbol-anchor take take-last take-nth take-while test test-all-vars testing testing-contexts-str testing-vars-str test-ns test-var the-ns throw time to-array to-array-2d trampoline transient tree-seq true? try try-expr type unchecked-add unchecked-dec unchecked-divide unchecked-inc unchecked-multiply unchecked-negate unchecked-remainder unchecked-subtract underive unimport union unquote unquote-splicing up update-in update-proxy use use-fixtures val vals var? var-get var-set vary-meta vec vector vector? walk when when-first when-let when-not while with-bindings with-bindings* with-in-str with-loading-context with-local-vars with-meta with-open with-out-str with-precision with-test with-test-out xml-seq zero?" list_variables = Set.fromList $ words $ "*1 *2 *3 *agent* *allow-unresolved-vars* *assert* *clojure-version* *command-line-args* *compile-files* *compile-path* *current* *e *err* *file* *flush-on-newline* *in* *initial-report-counters* *load-tests* *macro-meta* *math-context* *ns* *out* *print-dup* *print-length* *print-level* *print-meta* *print-readably* *read-eval* *report-counters* *sb* *source-path* *stack* *stack-trace-depth* *state* *testing-contexts* *testing-vars* *test-out* *use-context-classloader* *warn-on-reflection*" regex_'3b'2e'2a'24 = compileRegex ";.*$"-regex_'3a'5cS'2b = compileRegex ":\\S+" regex_'5b'40'7e'5d'5cS'2b = compileRegex "[@~]\\S+"+regex_'3a'3a'3f'5ba'2dzA'2dZ0'2d9'5c'2d'5d'2b = compileRegex "::?[a-zA-Z0-9\\-]+" regex_'5c'5c'2e = compileRegex "\\\\." regex_'5cs'2a'5bA'2dZa'2dz0'2d9'2d'2b'5c'3c'5c'3e'2f'2f'5c'2a'5d'2a'5cs'2a = compileRegex "\\s*[A-Za-z0-9-+\\<\\>//\\*]*\\s*" regex_'23'5c'5c'2e = compileRegex "#\\\\." -defaultAttributes = [("Normal",NormalTok),("function_decl",FunctionTok),("SpecialNumber",NormalTok),("String",StringTok)]+defaultAttributes = [("Level0",NormalTok),("Default",NormalTok),("function_decl",FunctionTok),("SpecialNumber",NormalTok),("String",StringTok),("Level1",NormalTok),("Level2",NormalTok),("Level3",NormalTok),("Level4",NormalTok),("Level5",NormalTok),("Level6",NormalTok)] -parseRules "Normal" =+parseRules "Level0" =+ (((pDetectChar False '(' >>= withAttribute NormalTok) >>~ pushContext "Level1")+ <|>+ ((pDetect2Chars False '#' '(' >>= withAttribute NormalTok) >>~ pushContext "Level1")+ <|>+ ((parseRules "Default")))++parseRules "Default" = (((pRegExpr regex_'3b'2e'2a'24 >>= withAttribute CommentTok)) <|> ((pDetect2Chars False '#' '_' >>= withAttribute CommentTok)) <|>- ((pRegExpr regex_'3a'5cS'2b >>= withAttribute KeywordTok))- <|> ((pRegExpr regex_'5b'40'7e'5d'5cS'2b >>= withAttribute KeywordTok)) <|>- ((pDetect2Chars False '#' '(' >>= withAttribute NormalTok))- <|>- ((pDetectChar False '(' >>= withAttribute NormalTok))- <|>- ((pDetectChar False ')' >>= withAttribute NormalTok))+ ((pRegExpr regex_'3a'3a'3f'5ba'2dzA'2dZ0'2d9'5c'2d'5d'2b >>= withAttribute KeywordTok)) <|> ((pDetect2Chars False '#' '{' >>= withAttribute NormalTok)) <|>@@ -118,7 +126,9 @@ <|> ((pFloat >>= withAttribute FloatTok)) <|>- ((pInt >>= withAttribute DecValTok)))+ ((pInt >>= withAttribute DecValTok))+ <|>+ ((pDetectChar False '(' >>= withAttribute NormalTok) >>~ pushContext "Level1")) parseRules "function_decl" = ((pRegExpr regex_'5cs'2a'5bA'2dZa'2dz0'2d9'2d'2b'5c'3c'5c'3e'2f'2f'5c'2a'5d'2a'5cs'2a >>= withAttribute FunctionTok) >>~ (popContext))@@ -139,6 +149,60 @@ <|> ((pDetectChar False '"' >>= withAttribute StringTok) >>~ (popContext))) -parseRules "" = parseRules "Normal"+parseRules "Level1" =+ (((pDetectChar False '(' >>= withAttribute NormalTok) >>~ pushContext "Level2")+ <|>+ ((pDetect2Chars False '#' '(' >>= withAttribute NormalTok) >>~ pushContext "Level2")+ <|>+ ((pDetectChar False ')' >>= withAttribute NormalTok) >>~ (popContext))+ <|>+ ((parseRules "Default")))++parseRules "Level2" =+ (((pDetectChar False '(' >>= withAttribute NormalTok) >>~ pushContext "Level3")+ <|>+ ((pDetect2Chars False '#' '(' >>= withAttribute NormalTok) >>~ pushContext "Level3")+ <|>+ ((pDetectChar False ')' >>= withAttribute NormalTok) >>~ (popContext))+ <|>+ ((parseRules "Default")))++parseRules "Level3" =+ (((pDetectChar False '(' >>= withAttribute NormalTok) >>~ pushContext "Level4")+ <|>+ ((pDetect2Chars False '#' '(' >>= withAttribute NormalTok) >>~ pushContext "Level4")+ <|>+ ((pDetectChar False ')' >>= withAttribute NormalTok) >>~ (popContext))+ <|>+ ((parseRules "Default")))++parseRules "Level4" =+ (((pDetectChar False '(' >>= withAttribute NormalTok) >>~ pushContext "Level5")+ <|>+ ((pDetect2Chars False '#' '(' >>= withAttribute NormalTok) >>~ pushContext "Level5")+ <|>+ ((pDetectChar False ')' >>= withAttribute NormalTok) >>~ (popContext))+ <|>+ ((parseRules "Default")))++parseRules "Level5" =+ (((pDetectChar False '(' >>= withAttribute NormalTok) >>~ pushContext "Level6")+ <|>+ ((pDetect2Chars False '#' '(' >>= withAttribute NormalTok) >>~ pushContext "Level6")+ <|>+ ((pDetectChar False ')' >>= withAttribute NormalTok) >>~ (popContext))+ <|>+ ((parseRules "Default")))++parseRules "Level6" =+ (((pDetectChar False '(' >>= withAttribute NormalTok) >>~ pushContext "Level1")+ <|>+ ((pDetect2Chars False '#' '(' >>= withAttribute NormalTok) >>~ pushContext "Level1")+ <|>+ ((pDetectChar False ')' >>= withAttribute NormalTok) >>~ (popContext))+ <|>+ ((parseRules "Default")))++parseRules "" = parseRules "Level0" parseRules x = fail $ "Unknown context" ++ x
+ Text/Highlighting/Kate/Syntax/Coffee.hs view
@@ -0,0 +1,197 @@+{- This module was generated from data in the Kate syntax+ highlighting file coffee.xml, version 1.3, by Max Shawabkeh (max99x@gmail.com) -}++module Text.Highlighting.Kate.Syntax.Coffee+ (highlight, parseExpression, syntaxName, syntaxExtensions)+where+import Text.Highlighting.Kate.Types+import Text.Highlighting.Kate.Common+import qualified Text.Highlighting.Kate.Syntax.Alert_indent+import qualified Text.Highlighting.Kate.Syntax.Javascript+import Text.ParserCombinators.Parsec hiding (State)+import Data.Map (fromList)+import Control.Monad.State+import Data.Char (isSpace)+import Data.Maybe (fromMaybe)+import qualified Data.Set as Set++-- | Full name of language.+syntaxName :: String+syntaxName = "CoffeeScript"++-- | Filename extensions for this language.+syntaxExtensions :: String+syntaxExtensions = "Cakefile;*.coffee;*.coco"++-- | Highlight source code using this syntax definition.+highlight :: String -> [SourceLine]+highlight input = evalState (mapM parseSourceLine $ lines input) startingState++parseSourceLine :: String -> State SyntaxState SourceLine+parseSourceLine = mkParseSourceLine parseExpressionInternal pEndLine++-- | Parse an expression using appropriate local context.+parseExpression :: KateParser Token+parseExpression = do+ st <- getState+ let oldLang = synStLanguage st+ setState $ st { synStLanguage = "CoffeeScript" }+ context <- currentContext <|> (pushContext "Normal" >> currentContext)+ result <- parseRules context+ optional $ eof >> pEndLine+ updateState $ \st -> st { synStLanguage = oldLang }+ return result++startingState = SyntaxState {synStContexts = fromList [("CoffeeScript",["Normal"])], synStLanguage = "CoffeeScript", synStLineNumber = 0, synStPrevChar = '\n', synStPrevNonspace = False, synStCaseSensitive = True, synStKeywordCaseSensitive = True, synStCaptures = []}++pEndLine = do+ updateState $ \st -> st{ synStPrevNonspace = False }+ context <- currentContext+ case context of+ "Normal" -> return ()+ "Multiline Regex" -> return ()+ "Class" -> return ()+ "Comment" -> (popContext) >> pEndLine+ "Multiline Comment" -> return ()+ "String" -> return ()+ "Rich String" -> return ()+ "Heredoc" -> return ()+ "Rich Heredoc" -> return ()+ "Embedding" -> return ()+ "Javascript" -> return ()+ _ -> return ()++withAttribute attr txt = do+ when (null txt) $ fail "Parser matched no text"+ updateState $ \st -> st { synStPrevChar = last txt+ , synStPrevNonspace = synStPrevNonspace st || not (all isSpace txt) }+ return (attr, txt)++parseExpressionInternal = do+ context <- currentContext+ parseRules context <|> (pDefault >>= withAttribute (fromMaybe NormalTok $ lookup context defaultAttributes))++list_value'5fkeywords = Set.fromList $ words $ "false true yes no on off undefined null NaN Infinity"+list_keywords = Set.fromList $ words $ "return break continue throw for while until loop if else unless switch when then and or in of by is isnt not typeof delete where super try catch finally try catch finally constructor"+list_class'5fkeywords = Set.fromList $ words $ "class extends new instanceof"+list_reserved = Set.fromList $ words $ "case default function var void with const let enum export import native __hasProp __extends __slice __bind __indexOf"+list_globals = Set.fromList $ words $ "Object Number Boolean Array String RegExp Function Date Math eval setInterval clearInterval setTimeout clearTimeout isFinite isNaN parseFloat parseInt escape unescape console encodeURI encodeURIComponent decodeURI decodeURIComponent"+list_browser'5fglobals = Set.fromList $ words $ "window document navigator location history screen alert prompt"+list_nodejs'5fglobals = Set.fromList $ words $ "process GLOBAL require exports"++regex_'28'40'5b'5f'24a'2dzA'2dZ'5d'5b'24'5cw'5d'2a'7c'5cbthis'29'5cb = compileRegex "(@[_$a-zA-Z][$\\w]*|\\bthis)\\b"+regex_'28'5c'28'28'5c'27'5b'5e'27'5d'2a'27'7c'22'5b'5e'22'5d'2a'22'7c'5b'5e'28'29'5d'29'2a'5c'29'29'3f'5cs'2a'28'2d'7c'3d'29'3e = compileRegex "(\\((\\'[^']*'|\"[^\"]*\"|[^()])*\\))?\\s*(-|=)>"+regex_'5b'5f'24a'2dz'5d'5b'24'5cw'5d'2a'5cb = compileRegex "[_$a-z][$\\w]*\\b"+regex_'2f'2f'2f = compileRegex "///"+regex_'2f'28'5b'5e'2f'5c'5c'5cr'5cn'5d'7c'5c'5c'2e'29'2a'2f'5bmig'5d'7b0'2c3'7d = compileRegex "/([^/\\\\\\r\\n]|\\\\.)*/[mig]{0,3}"+regex_'2f'2f'2f'5bmig'5d'7b0'2c3'7d = compileRegex "///[mig]{0,3}"+regex_'5b'40'24'3a'2e'5cw'5c'5b'5c'5d'5d'2b = compileRegex "[@$:.\\w\\[\\]]+"++defaultAttributes = [("Normal",NormalTok),("Multiline Regex",StringTok),("Class",NormalTok),("Comment",CommentTok),("Multiline Comment",CommentTok),("String",StringTok),("Rich String",StringTok),("Heredoc",StringTok),("Rich Heredoc",StringTok),("Embedding",NormalTok),("Javascript",AlertTok)]++parseRules "Normal" =+ (((pDetectSpaces >>= withAttribute NormalTok))+ <|>+ ((pFloat >>= withAttribute FloatTok))+ <|>+ ((pInt >>= withAttribute DecValTok))+ <|>+ ((pHlCOct >>= withAttribute BaseNTok))+ <|>+ ((pHlCHex >>= withAttribute BaseNTok))+ <|>+ ((pKeyword " \n\t.():!+,-<=>%&*/;?[]^{|}~\\#'" list_keywords >>= withAttribute KeywordTok))+ <|>+ ((pKeyword " \n\t.():!+,-<=>%&*/;?[]^{|}~\\#'" list_class'5fkeywords >>= withAttribute KeywordTok) >>~ pushContext "Class")+ <|>+ ((pKeyword " \n\t.():!+,-<=>%&*/;?[]^{|}~\\#'" list_value'5fkeywords >>= withAttribute OtherTok))+ <|>+ ((pKeyword " \n\t.():!+,-<=>%&*/;?[]^{|}~\\#'" list_reserved >>= withAttribute AlertTok))+ <|>+ ((pKeyword " \n\t.():!+,-<=>%&*/;?[]^{|}~\\#'" list_globals >>= withAttribute OtherTok))+ <|>+ ((pKeyword " \n\t.():!+,-<=>%&*/;?[]^{|}~\\#'" list_browser'5fglobals >>= withAttribute NormalTok))+ <|>+ ((pKeyword " \n\t.():!+,-<=>%&*/;?[]^{|}~\\#'" list_nodejs'5fglobals >>= withAttribute NormalTok))+ <|>+ ((pRegExpr regex_'28'40'5b'5f'24a'2dzA'2dZ'5d'5b'24'5cw'5d'2a'7c'5cbthis'29'5cb >>= withAttribute DataTypeTok))+ <|>+ ((pRegExpr regex_'28'5c'28'28'5c'27'5b'5e'27'5d'2a'27'7c'22'5b'5e'22'5d'2a'22'7c'5b'5e'28'29'5d'29'2a'5c'29'29'3f'5cs'2a'28'2d'7c'3d'29'3e >>= withAttribute FunctionTok))+ <|>+ ((pRegExpr regex_'5b'5f'24a'2dz'5d'5b'24'5cw'5d'2a'5cb >>= withAttribute NormalTok))+ <|>+ ((pString False "'''" >>= withAttribute StringTok) >>~ pushContext "Heredoc")+ <|>+ ((pString False "\"\"\"" >>= withAttribute StringTok) >>~ pushContext "Rich Heredoc")+ <|>+ ((pDetectChar False '\'' >>= withAttribute StringTok) >>~ pushContext "String")+ <|>+ ((pDetectChar False '"' >>= withAttribute StringTok) >>~ pushContext "Rich String")+ <|>+ ((pDetectChar False '`' >>= withAttribute AlertTok) >>~ pushContext "Javascript")+ <|>+ ((pString False "###" >>= withAttribute CommentTok) >>~ pushContext "Multiline Comment")+ <|>+ ((pDetectChar False '#' >>= withAttribute CommentTok) >>~ pushContext "Comment")+ <|>+ ((pRegExpr regex_'2f'2f'2f >>= withAttribute StringTok) >>~ pushContext "Multiline Regex")+ <|>+ ((pRegExpr regex_'2f'28'5b'5e'2f'5c'5c'5cr'5cn'5d'7c'5c'5c'2e'29'2a'2f'5bmig'5d'7b0'2c3'7d >>= withAttribute StringTok))+ <|>+ ((pAnyChar "():!%&+,-/.*<=>?[]|~^;{}" >>= withAttribute KeywordTok)))++parseRules "Multiline Regex" =+ (((pHlCStringChar >>= withAttribute StringTok))+ <|>+ ((pDetectChar False '#' >>= withAttribute CommentTok) >>~ pushContext "Comment")+ <|>+ ((pRegExpr regex_'2f'2f'2f'5bmig'5d'7b0'2c3'7d >>= withAttribute StringTok) >>~ (popContext)))++parseRules "Class" =+ (((pDetectSpaces >>= withAttribute NormalTok))+ <|>+ ((pRegExpr regex_'5b'40'24'3a'2e'5cw'5c'5b'5c'5d'5d'2b >>= withAttribute DataTypeTok) >>~ (popContext)))++parseRules "Comment" =+ ((Text.Highlighting.Kate.Syntax.Alert_indent.parseExpression >>= ((withAttribute CommentTok) . snd)))++parseRules "Multiline Comment" =+ (((pString False "###" >>= withAttribute CommentTok) >>~ (popContext))+ <|>+ ((Text.Highlighting.Kate.Syntax.Alert_indent.parseExpression >>= ((withAttribute CommentTok) . snd))))++parseRules "String" =+ (((pHlCStringChar >>= withAttribute StringTok))+ <|>+ ((pDetectChar False '\'' >>= withAttribute StringTok) >>~ (popContext)))++parseRules "Rich String" =+ (((pHlCStringChar >>= withAttribute StringTok))+ <|>+ ((pDetect2Chars False '#' '{' >>= withAttribute CharTok) >>~ pushContext "Embedding")+ <|>+ ((pDetectChar False '"' >>= withAttribute StringTok) >>~ (popContext)))++parseRules "Heredoc" =+ (((pHlCStringChar >>= withAttribute StringTok))+ <|>+ ((pString False "'''" >>= withAttribute StringTok) >>~ (popContext)))++parseRules "Rich Heredoc" =+ (((pHlCStringChar >>= withAttribute StringTok))+ <|>+ ((pDetect2Chars False '#' '{' >>= withAttribute CharTok) >>~ pushContext "Embedding")+ <|>+ ((pString False "\"\"\"" >>= withAttribute StringTok) >>~ (popContext)))++parseRules "Embedding" =+ ((pDetectChar False '}' >>= withAttribute CharTok) >>~ (popContext))++parseRules "Javascript" =+ (((pDetectChar False '`' >>= withAttribute AlertTok) >>~ (popContext))+ <|>+ ((Text.Highlighting.Kate.Syntax.Javascript.parseExpression)))++parseRules "" = parseRules "Normal"++parseRules x = fail $ "Unknown context" ++ x
− Text/Highlighting/Kate/Syntax/Coffeescript.hs
@@ -1,197 +0,0 @@-{- This module was generated from data in the Kate syntax- highlighting file coffeescript.xml, version 1.1, by Max Shawabkeh (max99x@gmail.com) -}--module Text.Highlighting.Kate.Syntax.Coffeescript- (highlight, parseExpression, syntaxName, syntaxExtensions)-where-import Text.Highlighting.Kate.Types-import Text.Highlighting.Kate.Common-import qualified Text.Highlighting.Kate.Syntax.Alert_indent-import qualified Text.Highlighting.Kate.Syntax.Javascript-import Text.ParserCombinators.Parsec hiding (State)-import Data.Map (fromList)-import Control.Monad.State-import Data.Char (isSpace)-import Data.Maybe (fromMaybe)-import qualified Data.Set as Set---- | Full name of language.-syntaxName :: String-syntaxName = "CofeeScript"---- | Filename extensions for this language.-syntaxExtensions :: String-syntaxExtensions = "Cakefile;*.coffee;*.coco"---- | Highlight source code using this syntax definition.-highlight :: String -> [SourceLine]-highlight input = evalState (mapM parseSourceLine $ lines input) startingState--parseSourceLine :: String -> State SyntaxState SourceLine-parseSourceLine = mkParseSourceLine parseExpressionInternal pEndLine---- | Parse an expression using appropriate local context.-parseExpression :: KateParser Token-parseExpression = do- st <- getState- let oldLang = synStLanguage st- setState $ st { synStLanguage = "CofeeScript" }- context <- currentContext <|> (pushContext "Normal" >> currentContext)- result <- parseRules context- optional $ eof >> pEndLine- updateState $ \st -> st { synStLanguage = oldLang }- return result--startingState = SyntaxState {synStContexts = fromList [("CofeeScript",["Normal"])], synStLanguage = "CofeeScript", synStLineNumber = 0, synStPrevChar = '\n', synStPrevNonspace = False, synStCaseSensitive = True, synStKeywordCaseSensitive = True, synStCaptures = []}--pEndLine = do- updateState $ \st -> st{ synStPrevNonspace = False }- context <- currentContext- case context of- "Normal" -> return ()- "Multiline Regex" -> return ()- "Class" -> return ()- "Comment" -> (popContext) >> pEndLine- "Multiline Comment" -> return ()- "String" -> return ()- "Rich String" -> return ()- "Heredoc" -> return ()- "Rich Heredoc" -> return ()- "Embedding" -> return ()- "Javascript" -> return ()- _ -> return ()--withAttribute attr txt = do- when (null txt) $ fail "Parser matched no text"- updateState $ \st -> st { synStPrevChar = last txt- , synStPrevNonspace = synStPrevNonspace st || not (all isSpace txt) }- return (attr, txt)--parseExpressionInternal = do- context <- currentContext- parseRules context <|> (pDefault >>= withAttribute (fromMaybe NormalTok $ lookup context defaultAttributes))--list_value'5fkeywords = Set.fromList $ words $ "false true yes no on off undefined null NaN Infinity"-list_keywords = Set.fromList $ words $ "return break continue throw for while until loop if else unless switch when then and or in of by is isnt not typeof delete where super try catch finally try catch finally constructor"-list_class'5fkeywords = Set.fromList $ words $ "class extends new instanceof"-list_reserved = Set.fromList $ words $ "case default function var void with const let enum export import native __hasProp __extends __slice __bind __indexOf"-list_globals = Set.fromList $ words $ "Object Number Boolean Array String RegExp Function Date Math eval setInterval clearInterval setTimeout clearTimeout isFinite isNaN parseFloat parseInt escape unescape console encodeURI encodeURIComponent decodeURI decodeURIComponent"-list_browser'5fglobals = Set.fromList $ words $ "window document navigator location history screen alert prompt"-list_nodejs'5fglobals = Set.fromList $ words $ "process GLOBAL require exports"--regex_'28'40'5b'5f'24a'2dzA'2dZ'5d'5b'24'5cw'5d'2b'7c'5cbthis'29'5cb = compileRegex "(@[_$a-zA-Z][$\\w]+|\\bthis)\\b"-regex_'28'5c'28'28'5c'27'5b'5e'27'5d'2a'27'7c'22'5b'5e'22'5d'2a'22'7c'5b'5e'28'29'5d'29'2a'5c'29'29'3f'5cs'2a'28'2d'7c'3d'29'3e = compileRegex "(\\((\\'[^']*'|\"[^\"]*\"|[^()])*\\))?\\s*(-|=)>"-regex_'5b'5f'24a'2dz'5d'5b'24'5cw'5d'2b'5cb = compileRegex "[_$a-z][$\\w]+\\b"-regex_'2f'2f'2f = compileRegex "///"-regex_'2f'28'5b'5e'2f'5c'5c'5cr'5cn'5d'7c'5c'5c'2e'29'2a'2f'5bmig'5d'7b0'2c3'7d = compileRegex "/([^/\\\\\\r\\n]|\\\\.)*/[mig]{0,3}"-regex_'2f'2f'2f'5bmig'5d'7b0'2c3'7d = compileRegex "///[mig]{0,3}"-regex_'5b'40'24'3a'2e'5cw'5c'5b'5c'5d'5d'2b = compileRegex "[@$:.\\w\\[\\]]+"--defaultAttributes = [("Normal",NormalTok),("Multiline Regex",StringTok),("Class",NormalTok),("Comment",CommentTok),("Multiline Comment",CommentTok),("String",StringTok),("Rich String",StringTok),("Heredoc",StringTok),("Rich Heredoc",StringTok),("Embedding",NormalTok),("Javascript",AlertTok)]--parseRules "Normal" =- (((pDetectSpaces >>= withAttribute NormalTok))- <|>- ((pFloat >>= withAttribute FloatTok))- <|>- ((pInt >>= withAttribute DecValTok))- <|>- ((pHlCOct >>= withAttribute BaseNTok))- <|>- ((pHlCHex >>= withAttribute BaseNTok))- <|>- ((pKeyword " \n\t.():!+,-<=>%&*/;?[]^{|}~\\#'" list_keywords >>= withAttribute KeywordTok))- <|>- ((pKeyword " \n\t.():!+,-<=>%&*/;?[]^{|}~\\#'" list_class'5fkeywords >>= withAttribute KeywordTok) >>~ pushContext "Class")- <|>- ((pKeyword " \n\t.():!+,-<=>%&*/;?[]^{|}~\\#'" list_value'5fkeywords >>= withAttribute OtherTok))- <|>- ((pKeyword " \n\t.():!+,-<=>%&*/;?[]^{|}~\\#'" list_reserved >>= withAttribute AlertTok))- <|>- ((pKeyword " \n\t.():!+,-<=>%&*/;?[]^{|}~\\#'" list_globals >>= withAttribute OtherTok))- <|>- ((pKeyword " \n\t.():!+,-<=>%&*/;?[]^{|}~\\#'" list_browser'5fglobals >>= withAttribute NormalTok))- <|>- ((pKeyword " \n\t.():!+,-<=>%&*/;?[]^{|}~\\#'" list_nodejs'5fglobals >>= withAttribute NormalTok))- <|>- ((pRegExpr regex_'28'40'5b'5f'24a'2dzA'2dZ'5d'5b'24'5cw'5d'2b'7c'5cbthis'29'5cb >>= withAttribute DataTypeTok))- <|>- ((pRegExpr regex_'28'5c'28'28'5c'27'5b'5e'27'5d'2a'27'7c'22'5b'5e'22'5d'2a'22'7c'5b'5e'28'29'5d'29'2a'5c'29'29'3f'5cs'2a'28'2d'7c'3d'29'3e >>= withAttribute FunctionTok))- <|>- ((pRegExpr regex_'5b'5f'24a'2dz'5d'5b'24'5cw'5d'2b'5cb >>= withAttribute NormalTok))- <|>- ((pString False "'''" >>= withAttribute StringTok) >>~ pushContext "Heredoc")- <|>- ((pString False "\"\"\"" >>= withAttribute StringTok) >>~ pushContext "Rich Heredoc")- <|>- ((pDetectChar False '\'' >>= withAttribute StringTok) >>~ pushContext "String")- <|>- ((pDetectChar False '"' >>= withAttribute StringTok) >>~ pushContext "Rich String")- <|>- ((pDetectChar False '`' >>= withAttribute AlertTok) >>~ pushContext "Javascript")- <|>- ((pString False "###" >>= withAttribute CommentTok) >>~ pushContext "Multiline Comment")- <|>- ((pDetectChar False '#' >>= withAttribute CommentTok) >>~ pushContext "Comment")- <|>- ((pRegExpr regex_'2f'2f'2f >>= withAttribute StringTok) >>~ pushContext "Multiline Regex")- <|>- ((pRegExpr regex_'2f'28'5b'5e'2f'5c'5c'5cr'5cn'5d'7c'5c'5c'2e'29'2a'2f'5bmig'5d'7b0'2c3'7d >>= withAttribute StringTok))- <|>- ((pAnyChar "():!%&+,-/.*<=>?[]|~^;{}" >>= withAttribute KeywordTok)))--parseRules "Multiline Regex" =- (((pHlCStringChar >>= withAttribute StringTok))- <|>- ((pDetectChar False '#' >>= withAttribute CommentTok) >>~ pushContext "Comment")- <|>- ((pRegExpr regex_'2f'2f'2f'5bmig'5d'7b0'2c3'7d >>= withAttribute StringTok) >>~ (popContext)))--parseRules "Class" =- (((pDetectSpaces >>= withAttribute NormalTok))- <|>- ((pRegExpr regex_'5b'40'24'3a'2e'5cw'5c'5b'5c'5d'5d'2b >>= withAttribute DataTypeTok) >>~ (popContext)))--parseRules "Comment" =- ((Text.Highlighting.Kate.Syntax.Alert_indent.parseExpression >>= ((withAttribute CommentTok) . snd)))--parseRules "Multiline Comment" =- (((pString False "###" >>= withAttribute CommentTok) >>~ (popContext))- <|>- ((Text.Highlighting.Kate.Syntax.Alert_indent.parseExpression >>= ((withAttribute CommentTok) . snd))))--parseRules "String" =- (((pHlCStringChar >>= withAttribute StringTok))- <|>- ((pDetectChar False '\'' >>= withAttribute StringTok) >>~ (popContext)))--parseRules "Rich String" =- (((pHlCStringChar >>= withAttribute StringTok))- <|>- ((pDetect2Chars False '#' '{' >>= withAttribute CharTok) >>~ pushContext "Embedding")- <|>- ((pDetectChar False '"' >>= withAttribute StringTok) >>~ (popContext)))--parseRules "Heredoc" =- (((pHlCStringChar >>= withAttribute StringTok))- <|>- ((pString False "'''" >>= withAttribute StringTok) >>~ (popContext)))--parseRules "Rich Heredoc" =- (((pHlCStringChar >>= withAttribute StringTok))- <|>- ((pDetect2Chars False '#' '{' >>= withAttribute CharTok) >>~ pushContext "Embedding")- <|>- ((pString False "\"\"\"" >>= withAttribute StringTok) >>~ (popContext)))--parseRules "Embedding" =- ((pDetectChar False '}' >>= withAttribute CharTok) >>~ (popContext))--parseRules "Javascript" =- (((pDetectChar False '`' >>= withAttribute AlertTok) >>~ (popContext))- <|>- ((Text.Highlighting.Kate.Syntax.Javascript.parseExpression)))--parseRules "" = parseRules "Normal"--parseRules x = fail $ "Unknown context" ++ x
Text/Highlighting/Kate/Syntax/Cpp.hs view
@@ -71,7 +71,7 @@ context <- currentContext parseRules context <|> (pDefault >>= withAttribute (fromMaybe NormalTok $ lookup context defaultAttributes)) -list_keywords = Set.fromList $ words $ "asm break case catch class constexpr const_cast continue decltype default delete do dynamic_cast else enum explicit export extern false friend for goto if inline namespace new nullptr operator private protected public qobject_cast reinterpret_cast return sizeof static_assert static_cast struct switch template this throw true try typedef typeid type_info typename union using virtual while and and_eq bad_cast bad_typeid bitand bitor compl not not_eq or or_eq xor xor_eq"+list_keywords = Set.fromList $ words $ "asm break case catch class constexpr const_cast continue decltype default delete do dynamic_cast else enum explicit export extern false final friend for goto if inline namespace new noexcept nullptr operator override private protected public qobject_cast reinterpret_cast return sizeof static_assert static_cast struct switch template this throw true try typedef typeid type_info typename union using virtual while and and_eq bad_cast bad_typeid bitand bitor compl not not_eq or or_eq xor xor_eq" list_extensions = Set.fromList $ words $ "K_DCOP Q_ARG Q_ASSERT Q_ASSERT_X Q_CHECK_PTR Q_CLASSINFO Q_CLEANUP_RESOURCE Q_D Q_DECLARE_FLAGS Q_DECLARE_FLAGS Q_DECLARE_INTERFACE Q_DECLARE_METATYPE Q_DECLARE_OPERATORS_FOR_FLAGS Q_DECLARE_PRIVATE Q_DECLARE_PUBLIC Q_DECLARE_SHARED Q_DECLARE_TYPEINFO Q_DISABLE_COPY Q_ENUMS Q_EXPORT Q_FLAGS Q_FOREACH Q_FOREVER Q_GADGET Q_GLOBAL_STATIC Q_GLOBAL_STATIC_WITH_ARGS Q_INIT_RESOURCE Q_INTERFACES Q_INVOKABLE Q_NOREPLY Q_OBJECT Q_OVERRIDE Q_PRIVATE_SLOT Q_PROPERTY Q_Q Q_RETURN_ARG Q_SCRIPTABLE Q_SETS Q_SIGNALS Q_SLOTS Q_UNUSED SIGNAL SLOT TRUE FALSE connect disconnect emit signals slots foreach forever qint8 qint16 qint32 qint64 qlonglong qptrdiff qreal quint8 quint16 quint32 quint64 quintptr qulonglong" list_types = Set.fromList $ words $ "auto bool char char16_t char32_t const double float int long mutable register short signed static unsigned void volatile uchar uint int8_t int16_t int32_t int64_t uint8_t uint16_t uint32_t uint64_t wchar_t"
Text/Highlighting/Kate/Syntax/Doxygen.hs view
@@ -1,5 +1,5 @@ {- This module was generated from data in the Kate syntax- highlighting file doxygen.xml, version 1.32, by Dominik Haumann (dhdev@gmx.de) -}+ highlighting file doxygen.xml, version 1.33, by Dominik Haumann (dhdev@gmx.de) -} module Text.Highlighting.Kate.Syntax.Doxygen (highlight, parseExpression, syntaxName, syntaxExtensions)@@ -91,12 +91,16 @@ context <- currentContext parseRules context <|> (pDefault >>= withAttribute (fromMaybe NormalTok $ lookup context defaultAttributes)) -list_TagOnly = Set.fromList $ words $ "\\arg \\attention \\author \\callgraph \\callergraph \\details \\dot \\else \\endcond \\enddot \\endhtmlonly \\endif \\endlatexonly \\endlink \\endmanonly \\endmsc \\endverbatim \\endxmlonly \\f[ \\f] \\f$ \\hideinitializer \\htmlonly \\interface \\internal \\invariant \\~ \\@ \\$ \\\\ \\# \\latexonly \\li \\manonly \\msc \\n \\nosubgrouping \\note \\only \\post \\pre \\private \\privatesection \\protected \\protectedsection \\public \\publicsection \\remarks \\return \\returns \\showinitializer \\since \\test \\todo \\verbatim \\warning \\xmlonly @arg @attention @author @callgraph @callergraph @details @dot @else @endcond @enddot @endhtmlonly @endif @endlatexonly @endlink @endmanonly @endmsc @endverbatim @endxmlonly @f[ @f] @f$ @hideinitializer @htmlonly @interface @internal @invariant @~ @@ @$ @\\ @# @latexonly @li @manonly @msc @n @nosubgrouping @note @only @post @pre @pivate @pivatesection @protected @protectedsection @public @publicsection @remarks @return @returns @showinitializer @since @test @todo @verbatim @warning @xmlonly"-list_TagWord = Set.fromList $ words $ "\\addtogroup \\a \\anchor \\b \\c \\class \\cond \\copybrief \\copydetails \\copydoc \\def \\dir \\dontinclude \\dotfile \\e \\elseif \\em \\enum \\example \\exception \\exceptions \\extends \\file \\htmlinclude \\if \\ifnot \\implements \\include \\includelineno \\link \\memberof \\namespace \\p \\package \\property \\protocol \\ref \\relatesalso \\relates \\retval \\throw \\throws \\verbinclude \\version \\xrefitem @addtogroup @a @anchor @b @c @class @cond @copybrief @copydetails @copydoc @def @dir @dontinclude @dotfile @e @elseif @em @enum @example @exception @exceptions @extends @file @htmlinclude @if @ifnot @implements @include @includelineno @link @memberof @namespace @p @package @property @prtocol @ref @relatesalso @relates @retval @throw @throws @verbinclude @version @xrefitem"-list_TagParam = Set.fromList $ words $ "\\param \\tparam @param @tparam"+list_TagOnly = Set.fromList $ words $ "\\arg @arg \\author @author \\authors @authors \\brief @brief \\bug @bug \\callgraph @callgraph \\callergraph @callergraph \\date @date \\deprecated @deprecated \\details @details \\else @else \\endcond @endcond \\endhtmlonly @endhtmlonly \\endif @endif \\enditernal @enditernal \\endlatexonly @endlatexonly \\endlink @endlink \\endmanonly @endmanonly \\endrtfonly @endrtfonly \\endxmlonly @endxmlonly \\f[ @f[ \\f] @f] \\f$ @f$ \\hideinitializer @hideinitializer \\htmlonly @htmlonly \\internal @internal \\invariant @invariant \\latexonly @latexonly \\li @li \\manonly @manonly \\n @n \\nosubgrouping @nosubgrouping \\only @only \\post @post \\pre @pre \\private @pivate \\privatesection @pivatesection \\protected @protected \\protectedsection @protectedsection \\public @public \\publicsection @publicsection \\remarks @remarks \\return @return \\returns @returns \\result @result \\rtfonly @rtfonly \\sa @sa \\see @see \\short @short \\showinitializer @showinitializer \\since @since \\tableofcontents @tableofcontents \\test @test \\version @version \\xmlonly @xmlonly \\# @# \\$ @$ \\% @% \\& @& \\> @> \\< @< \\\" @\" \\:: @:: \\@ @@ \\\\ @\\ \\~ @~"+list_TagWord = Set.fromList $ words $ "\\a @a \\anchor @anchor \\b @b \\c @c \\cond @cond \\copybrief @copybrief \\copydetails @copydetails \\copydoc @copydoc \\def @def \\dir @dir \\dontinclude @dontinclude \\e @e \\elseif @elseif \\em @em \\enum @enum \\example @example \\exception @exception \\exceptions @exceptions \\extends @extends \\file @file \\htmlinclude @htmlinclude \\if @if \\ifnot @ifnot \\implements @implements \\include @include \\includelineno @includelineno \\link @link \\memberof @memberof \\namespace @namespace \\p @p \\package @package \\property @property \\relatedalso @relatedalso \\relatesalso @relatesalso \\related @related \\relates @relates \\retval @retval \\throw @throw \\throws @throws \\verbinclude @verbinclude \\version @version \\xrefitem @xrefitem"+list_TagParam = Set.fromList $ words $ "\\param @param \\tparam @tparam" list_TagWordWord = Set.fromList $ words $ "\\image @image"-list_TagWordString = Set.fromList $ words $ "\\category \\defgroup \\headerfile \\page \\paragraph \\section \\struct \\subpage \\subsection \\subsubsection \\union \\weakgroup @category @defgroup @headerfile @page @paragraph @section @struct @subpage @subsection @subsubsection @union @weakgroup"-list_TagString = Set.fromList $ words $ "\\addindex \\brief \\bug \\date \\deprecated \\fn \\ingroup \\line \\mainpage \\name \\overload \\par \\sa \\see \\short \\skip \\skipline \\typedef \\until \\var @addindex @brief @bug @date @deprecated @fn @ingroup @line @mainpage @name @overload @par @sa @see @short @skip @skipline @typedef @until @var"+list_TagWordString = Set.fromList $ words $ "\\addtogroup @addtogroup \\category @category \\class @class \\dotfile @dotfile \\defgroup @defgroup \\interface @interface \\headerfile @headerfile \\mscfile @mscfile \\page @page \\paragraph @paragraph \\protocol @prtocol \\ref @ref \\section @section \\snippet @snippet \\struct @struct \\subpage @subpage \\subsection @subsection \\subsubsection @subsubsection \\union @union \\weakgroup @weakgroup"+list_TagString = Set.fromList $ words $ "\\addindex @addindex \\copyright @copyright \\fn @fn \\ingroup @ingroup \\line @line \\mainpage @mainpage \\name @name \\overload @overload \\par @par \\skip @skip \\skipline @skipline \\typedef @typedef \\until @until \\var @var"+list_Note = Set.fromList $ words $ "\\note @note"+list_Warning = Set.fromList $ words $ "\\warning @warning"+list_Attention = Set.fromList $ words $ "\\attention @attention"+list_Todo = Set.fromList $ words $ "\\todo @todo" regex_'2f'2f'28'21'7c'28'2f'28'3f'3d'5b'5e'2f'5d'7c'24'29'29'29'3c'3f = compileRegex "//(!|(/(?=[^/]|$)))<?" regex_'2f'5c'2a'28'5c'2a'5b'5e'2a'2f'5d'7c'21'7c'5b'2a'21'5d'3c'7c'5c'2a'24'29 = compileRegex "/\\*(\\*[^*/]|!|[*!]<|\\*$)"@@ -104,6 +108,7 @@ regex_'2f'2f'5cs'2a'40'5c'7d'5cs'2a'24 = compileRegex "//\\s*@\\}\\s*$" regex_'2f'5c'2a'5cs'2a'40'5c'7b'5cs'2a'5c'2a'2f = compileRegex "/\\*\\s*@\\{\\s*\\*/" regex_'2f'5c'2a'5cs'2a'40'5c'7d'5cs'2a'5c'2a'2f = compileRegex "/\\*\\s*@\\}\\s*\\*/"+regex_'5b'40'5c'5c'5d'5b'5e'40'5c'5c_'5ct'5d'2b = compileRegex "[@\\\\][^@\\\\ \\t]+" regex_'3c'5c'2f'3f'5ba'2dzA'2dZ'5f'3a'5d'5ba'2dzA'2dZ0'2d9'2e'5f'3a'2d'5d'2a = compileRegex "<\\/?[a-zA-Z_:][a-zA-Z0-9._:-]*" regex_'5c'5c'28'3c'7c'3e'29 = compileRegex "\\\\(<|>)" regex_'5cS'28'3f'3d'28'5b'5d'5b'2c'3f'3b'28'29'5d'7c'5c'2e'24'7c'5c'2e'3f'5cs'29'29 = compileRegex "\\S(?=([][,?;()]|\\.$|\\.?\\s))"@@ -111,18 +116,19 @@ regex_'2e = compileRegex "." regex_'5cs'2a'3d'5cs'2a = compileRegex "\\s*=\\s*" regex_'5cs'2a'23'3f'5ba'2dzA'2dZ0'2d9'5d'2a = compileRegex "\\s*#?[a-zA-Z0-9]*"-regex_'5b'40'5c'5c'5dcode = compileRegex "[@\\\\]code"-regex_'5b'40'5c'5c'5dverbatim = compileRegex "[@\\\\]verbatim"+regex_'5b'40'5c'5c'5dcode'5cb = compileRegex "[@\\\\]code\\b"+regex_'5b'40'5c'5c'5dverbatim'5cb = compileRegex "[@\\\\]verbatim\\b" regex_'5b'40'5c'5c'5df'5c'5b = compileRegex "[@\\\\]f\\["-regex_'5b'40'5c'5c'5dmsc = compileRegex "[@\\\\]msc"-regex_'5b'40'5c'5c'5ddot = compileRegex "[@\\\\]dot"-regex_'5b'40'5c'5c'5dendcode = compileRegex "[@\\\\]endcode"-regex_'5b'40'5c'5c'5dendverbatim = compileRegex "[@\\\\]endverbatim"+regex_'5b'40'5c'5c'5dmsc'5cb = compileRegex "[@\\\\]msc\\b"+regex_'5b'40'5c'5c'5ddot'5cb = compileRegex "[@\\\\]dot\\b"+regex_'26'5bA'2dZa'2dz'5d'2b'3b = compileRegex "&[A-Za-z]+;"+regex_'5b'40'5c'5c'5dendcode'5cb = compileRegex "[@\\\\]endcode\\b"+regex_'5b'40'5c'5c'5dendverbatim'5cb = compileRegex "[@\\\\]endverbatim\\b" regex_'5b'40'5c'5c'5df'5c'5d = compileRegex "[@\\\\]f\\]"-regex_'5b'40'5c'5c'5dendmsc = compileRegex "[@\\\\]endmsc"-regex_'5b'40'5c'5c'5denddot = compileRegex "[@\\\\]enddot"+regex_'5b'40'5c'5c'5dendmsc'5cb = compileRegex "[@\\\\]endmsc\\b"+regex_'5b'40'5c'5c'5denddot'5cb = compileRegex "[@\\\\]enddot\\b" -defaultAttributes = [("Normal",NormalTok),("LineComment",CommentTok),("BlockComment",CommentTok),("ML_TagWord",CommentTok),("ML_TagParam",CommentTok),("ML_TagWordWord",CommentTok),("ML_Tag2ndWord",CommentTok),("ML_TagString",CommentTok),("ML_TagWordString",CommentTok),("ML_htmltag",OtherTok),("ML_htmlcomment",CommentTok),("ML_identifiers",OtherTok),("ML_types1",DataTypeTok),("ML_types2",DataTypeTok),("SL_TagWord",CommentTok),("SL_TagParam",CommentTok),("SL_TagWordWord",CommentTok),("SL_Tag2ndWord",CommentTok),("SL_TagString",CommentTok),("SL_TagWordString",CommentTok),("SL_htmltag",OtherTok),("SL_htmlcomment",CommentTok),("SL_identifiers",OtherTok),("SL_types1",DataTypeTok),("SL_types2",DataTypeTok),("SL_DetectEnv",NormalTok),("SL_DetectComment",NormalTok),("Code",CommentTok),("Verbatim",CommentTok),("Formula",CommentTok),("Msc",CommentTok),("Dot",CommentTok)]+defaultAttributes = [("Normal",NormalTok),("LineComment",CommentTok),("BlockComment",CommentTok),("ML_TagWord",CommentTok),("ML_TagParam",CommentTok),("ML_TagWordWord",CommentTok),("ML_Tag2ndWord",CommentTok),("ML_TagString",CommentTok),("ML_TagWordString",CommentTok),("ML_htmltag",OtherTok),("ML_htmlcomment",CommentTok),("ML_identifiers",OtherTok),("ML_types1",DataTypeTok),("ML_types2",DataTypeTok),("SL_TagWord",CommentTok),("SL_TagParam",CommentTok),("SL_TagWordWord",CommentTok),("SL_Tag2ndWord",CommentTok),("SL_TagString",CommentTok),("SL_TagWordString",CommentTok),("SL_htmltag",OtherTok),("SL_htmlcomment",CommentTok),("SL_identifiers",OtherTok),("SL_types1",DataTypeTok),("SL_types2",DataTypeTok),("SL_DetectEnv",CommentTok),("SL_DetectComment",CommentTok),("Code",CommentTok),("Verbatim",CommentTok),("Formula",CommentTok),("Msc",CommentTok),("Dot",CommentTok)] parseRules "Normal" = (((pRegExpr regex_'2f'2f'28'21'7c'28'2f'28'3f'3d'5b'5e'2f'5d'7c'24'29'29'29'3c'3f >>= withAttribute CommentTok) >>~ pushContext "LineComment")@@ -158,6 +164,8 @@ <|> ((pKeyword " \n\t.():!+,-<=>%&*/;?[]^{|}" list_TagWordString >>= withAttribute KeywordTok) >>~ pushContext "SL_TagWordString") <|>+ ((pRegExpr regex_'5b'40'5c'5c'5d'5b'5e'40'5c'5c_'5ct'5d'2b >>= withAttribute NormalTok))+ <|> ((pDetectIdentifier >>= withAttribute CommentTok)) <|> ((pString False "<!--" >>= withAttribute CommentTok) >>~ pushContext "SL_htmlcomment")@@ -191,6 +199,8 @@ <|> ((pKeyword " \n\t.():!+,-<=>%&*/;?[]^{|}" list_TagWordString >>= withAttribute KeywordTok) >>~ pushContext "ML_TagWordString") <|>+ ((pRegExpr regex_'5b'40'5c'5c'5d'5b'5e'40'5c'5c_'5ct'5d'2b >>= withAttribute NormalTok))+ <|> ((pDetectIdentifier >>= withAttribute CommentTok)) <|> ((pRegExpr regex_'5c'5c'28'3c'7c'3e'29 >>= withAttribute KeywordTok))@@ -368,28 +378,42 @@ ((pDetectChar False '"' >>= withAttribute DataTypeTok) >>~ (popContext >> popContext)) parseRules "SL_DetectEnv" =- (((pRegExpr regex_'5b'40'5c'5c'5dcode >>= withAttribute KeywordTok) >>~ pushContext "Code")+ (((pRegExpr regex_'5b'40'5c'5c'5dcode'5cb >>= withAttribute KeywordTok) >>~ pushContext "Code") <|>- ((pRegExpr regex_'5b'40'5c'5c'5dverbatim >>= withAttribute KeywordTok) >>~ pushContext "Verbatim")+ ((pRegExpr regex_'5b'40'5c'5c'5dverbatim'5cb >>= withAttribute KeywordTok) >>~ pushContext "Verbatim") <|> ((pRegExpr regex_'5b'40'5c'5c'5df'5c'5b >>= withAttribute KeywordTok) >>~ pushContext "Formula") <|>- ((pRegExpr regex_'5b'40'5c'5c'5dmsc >>= withAttribute KeywordTok) >>~ pushContext "Msc")+ ((pRegExpr regex_'5b'40'5c'5c'5dmsc'5cb >>= withAttribute KeywordTok) >>~ pushContext "Msc") <|>- ((pRegExpr regex_'5b'40'5c'5c'5ddot >>= withAttribute KeywordTok) >>~ pushContext "Dot"))+ ((pRegExpr regex_'5b'40'5c'5c'5ddot'5cb >>= withAttribute KeywordTok) >>~ pushContext "Dot")+ <|>+ ((pKeyword " \n\t.():!+,-<=>%&*/;?[]^{|}" list_Note >>= withAttribute KeywordTok))+ <|>+ ((pKeyword " \n\t.():!+,-<=>%&*/;?[]^{|}" list_Warning >>= withAttribute KeywordTok))+ <|>+ ((pKeyword " \n\t.():!+,-<=>%&*/;?[]^{|}" list_Attention >>= withAttribute KeywordTok))+ <|>+ ((pKeyword " \n\t.():!+,-<=>%&*/;?[]^{|}" list_Todo >>= withAttribute KeywordTok))+ <|>+ ((pRegExpr regex_'26'5bA'2dZa'2dz'5d'2b'3b >>= withAttribute OtherTok))) parseRules "SL_DetectComment" =- ((pDetect2Chars False '*' '/' >>= withAttribute CommentTok) >>~ (popContext >> popContext))+ (((pDetect2Chars False '*' '/' >>= withAttribute CommentTok) >>~ (popContext >> popContext))+ <|>+ ((pDetectChar False '*' >>= withAttribute CommentTok))+ <|>+ ((pString False "///" >>= withAttribute CommentTok))) parseRules "Code" = (((parseRules "SL_DetectComment")) <|>- ((pRegExpr regex_'5b'40'5c'5c'5dendcode >>= withAttribute KeywordTok) >>~ (popContext)))+ ((pRegExpr regex_'5b'40'5c'5c'5dendcode'5cb >>= withAttribute KeywordTok) >>~ (popContext))) parseRules "Verbatim" = (((parseRules "SL_DetectComment")) <|>- ((pRegExpr regex_'5b'40'5c'5c'5dendverbatim >>= withAttribute KeywordTok) >>~ (popContext)))+ ((pRegExpr regex_'5b'40'5c'5c'5dendverbatim'5cb >>= withAttribute KeywordTok) >>~ (popContext))) parseRules "Formula" = (((parseRules "SL_DetectComment"))@@ -399,12 +423,12 @@ parseRules "Msc" = (((parseRules "SL_DetectComment")) <|>- ((pRegExpr regex_'5b'40'5c'5c'5dendmsc >>= withAttribute KeywordTok) >>~ (popContext)))+ ((pRegExpr regex_'5b'40'5c'5c'5dendmsc'5cb >>= withAttribute KeywordTok) >>~ (popContext))) parseRules "Dot" = (((parseRules "SL_DetectComment")) <|>- ((pRegExpr regex_'5b'40'5c'5c'5denddot >>= withAttribute KeywordTok) >>~ (popContext)))+ ((pRegExpr regex_'5b'40'5c'5c'5denddot'5cb >>= withAttribute KeywordTok) >>~ (popContext))) parseRules "" = parseRules "Normal"
Text/Highlighting/Kate/Syntax/Fortran.hs view
@@ -1,5 +1,5 @@ {- This module was generated from data in the Kate syntax- highlighting file fortran.xml, version 1.12, by Franchin Matteo (fnch@libero.it) -}+ highlighting file fortran.xml, version 1.13, by Franchin Matteo (fnch@libero.it) -} module Text.Highlighting.Kate.Syntax.Fortran (highlight, parseExpression, syntaxName, syntaxExtensions)
Text/Highlighting/Kate/Syntax/Go.hs view
@@ -1,5 +1,5 @@ {- This module was generated from data in the Kate syntax- highlighting file go.xml, version 1.00, by Miquel Sabaté (mikisabate@gmail.com) -}+ highlighting file go.xml, version 1.01, by Miquel Sabaté (mikisabate@gmail.com) -} module Text.Highlighting.Kate.Syntax.Go (highlight, parseExpression, syntaxName, syntaxExtensions)@@ -50,8 +50,8 @@ "normal" -> return () "Commentar 1" -> (popContext) >> pEndLine "Commentar 2" -> return ()- "Package" -> (popContext) >> pEndLine "String" -> (popContext) >> pEndLine+ "Multiline String" -> return () _ -> return () withAttribute attr txt = do@@ -64,24 +64,22 @@ context <- currentContext parseRules context <|> (pDefault >>= withAttribute (fromMaybe NormalTok $ lookup context defaultAttributes)) -list_keywords = Set.fromList $ words $ "break case chan const continue default defer else fallthrough for func go goto if import interface map range return select struct switch type var"-list_types = Set.fromList $ words $ "bool byte complex64 complex128 float float32 float64 int int8 int16 int32 int64 string uint uint8 uint16 uint32 uint64"-list_builtin = Set.fromList $ words $ "cap len make new panic recover"-list_special = Set.fromList $ words $ "false nil true"+list_keywords = Set.fromList $ words $ "break case chan const continue default defer else fallthrough for func go goto if import interface map package range return select struct switch type var"+list_types = Set.fromList $ words $ "bool byte complex64 complex128 error float float32 float64 int int8 int16 int32 int64 rune string uint uint8 uint16 uint32 uint64"+list_builtin = Set.fromList $ words $ "append cap close complex copy imag len make new panic print println real recover"+list_predeclared = Set.fromList $ words $ "false nil true iota" -defaultAttributes = [("normal",NormalTok),("Commentar 1",CommentTok),("Commentar 2",CommentTok),("Package",NormalTok),("String",StringTok)]+defaultAttributes = [("normal",NormalTok),("Commentar 1",CommentTok),("Commentar 2",CommentTok),("String",StringTok),("Multiline String",StringTok)] parseRules "normal" =- (((pKeyword " \n\t.():!+,-<=>%&*/;?[]^{|}~\\" list_keywords >>= withAttribute KeywordTok))- <|>- ((pKeyword " \n\t.():!+,-<=>%&*/;?[]^{|}~\\" list_special >>= withAttribute OtherTok))+ (((pKeyword " \n\t.():!+,-<=>%&*/;?[]^{|}~\\'\"" list_keywords >>= withAttribute KeywordTok)) <|>- ((pKeyword " \n\t.():!+,-<=>%&*/;?[]^{|}~\\" list_types >>= withAttribute DataTypeTok))+ ((pKeyword " \n\t.():!+,-<=>%&*/;?[]^{|}~\\'\"" list_predeclared >>= withAttribute OtherTok)) <|>- ((pKeyword " \n\t.():!+,-<=>%&*/;?[]^{|}~\\" list_builtin >>= withAttribute OtherTok))+ ((pKeyword " \n\t.():!+,-<=>%&*/;?[]^{|}~\\'\"" list_types >>= withAttribute DataTypeTok)) <|>- ((pString False "package" >>= withAttribute NormalTok) >>~ pushContext "Package")+ ((pKeyword " \n\t.():!+,-<=>%&*/;?[]^{|}~\\'\"" list_builtin >>= withAttribute FunctionTok)) <|> ((pDetectChar False '{' >>= withAttribute NormalTok)) <|>@@ -91,9 +89,17 @@ <|> ((pDetect2Chars False '/' '*' >>= withAttribute CommentTok) >>~ pushContext "Commentar 2") <|>+ ((pHlCOct >>= withAttribute BaseNTok))+ <|>+ ((pHlCHex >>= withAttribute BaseNTok))+ <|> ((pHlCChar >>= withAttribute CharTok)) <|>- ((pDetectChar False '"' >>= withAttribute StringTok) >>~ pushContext "String"))+ ((pDetectChar False '"' >>= withAttribute StringTok) >>~ pushContext "String")+ <|>+ ((pDetectChar False '`' >>= withAttribute NormalTok) >>~ pushContext "Multiline String")+ <|>+ ((pAnyChar ":!%&()+,-/.*<=>?[]|~^;" >>= withAttribute NormalTok))) parseRules "Commentar 1" = (((pLineContinue >>= withAttribute CommentTok))@@ -113,15 +119,19 @@ <|> ((pDetectIdentifier >>= withAttribute CommentTok))) -parseRules "Package" =- pzero- parseRules "String" = (((pLineContinue >>= withAttribute StringTok)) <|> ((pHlCStringChar >>= withAttribute CharTok)) <|> ((pDetectChar False '"' >>= withAttribute StringTok) >>~ (popContext)))++parseRules "Multiline String" =+ (((pLineContinue >>= withAttribute StringTok))+ <|>+ ((pHlCStringChar >>= withAttribute CharTok))+ <|>+ ((pDetectChar False '`' >>= withAttribute StringTok) >>~ (popContext))) parseRules "" = parseRules "normal"
Text/Highlighting/Kate/Syntax/Latex.hs view
@@ -1,5 +1,5 @@ {- This module was generated from data in the Kate syntax- highlighting file latex.xml, version 1.47, by Jeroen Wijnhout (Jeroen.Wijnhout@kdemail.net)+Holger Danielsson (holger.danielsson@versanet.de)+Michel Ludwig (michel.ludwig@kdemail.net)+Thomas Braun (thomas.braun@virtuell-zuhause.de) -}+ highlighting file latex.xml, version 1.48, by Jeroen Wijnhout (Jeroen.Wijnhout@kdemail.net)+Holger Danielsson (holger.danielsson@versanet.de)+Michel Ludwig (michel.ludwig@kdemail.net)+Thomas Braun (thomas.braun@virtuell-zuhause.de) -} module Text.Highlighting.Kate.Syntax.Latex (highlight, parseExpression, syntaxName, syntaxExtensions)
Text/Highlighting/Kate/Syntax/Prolog.hs view
@@ -1,5 +1,5 @@ {- This module was generated from data in the Kate syntax- highlighting file prolog.xml, version 1.04, by -}+ highlighting file prolog.xml, version 1.05, by -} module Text.Highlighting.Kate.Syntax.Prolog (highlight, parseExpression, syntaxName, syntaxExtensions)@@ -109,10 +109,14 @@ pzero parseRules "string" =- ((pDetectChar False '"' >>= withAttribute StringTok) >>~ (popContext))+ (((pHlCStringChar >>= withAttribute StringTok))+ <|>+ ((pDetectChar False '"' >>= withAttribute StringTok) >>~ (popContext))) parseRules "string2" =- ((pDetectChar False '\'' >>= withAttribute StringTok) >>~ (popContext))+ (((pHlCChar >>= withAttribute StringTok))+ <|>+ ((pDetectChar False '\'' >>= withAttribute StringTok) >>~ (popContext))) parseRules "comment region" = ((pDetect2Chars False '*' '/' >>= withAttribute CommentTok) >>~ (popContext))
Text/Highlighting/Kate/Syntax/R.hs view
@@ -1,5 +1,5 @@ {- This module was generated from data in the Kate syntax- highlighting file r.xml, version 2.04, by -}+ highlighting file r.xml, version 2.07, by -} module Text.Highlighting.Kate.Syntax.R (highlight, parseExpression, syntaxName, syntaxExtensions)@@ -52,6 +52,7 @@ "string" -> return () "string2" -> return () "backquotedsymbol" -> return ()+ "operator_rhs" -> return () "Headline" -> (popContext) >> pEndLine "Comment" -> (popContext) >> pEndLine "CommonRules" -> return ()@@ -71,22 +72,17 @@ list_words = Set.fromList $ words $ "TRUE FALSE NULL NA NA_integer_ NA_real_ NA_complex_ NA_character_ Inf NaN" regex_'5ba'2dzA'2dZ'5f'5c'2e'5d'5b0'2d9a'2dzA'2dZ'5f'5c'2e'5d'2a'5b'5cs'5d'2a'3d'28'3f'3d'28'5b'5e'3d'5d'7c'24'29'29 = compileRegex "[a-zA-Z_\\.][0-9a-zA-Z_\\.]*[\\s]*=(?=([^=]|$))"+regex_'28'5c'2a'7c'2f'7c'3c'7c'3e'7c'5c'21'3d'7c'3d'7c'5c'7c'7c'26'7c'3a'7c'5c'5e'7c'40'7c'5c'24'7c'7e'29 = compileRegex "(\\*|/|<|>|\\!=|=|\\||&|:|\\^|@|\\$|~)" regex_'5ba'2dzA'2dZ'5f'5d'2b'5ba'2dzA'2dZ'5f'5c'2e0'2d9'5d'2a'28'3f'3d'5b'5cs'5d'2a'5b'28'5d'29 = compileRegex "[a-zA-Z_]+[a-zA-Z_\\.0-9]*(?=[\\s]*[(])" regex_'5c'2e'5ba'2dzA'2dZ'5f'5c'2e'5d'2b'5ba'2dzA'2dZ'5f'5c'2e0'2d9'5d'2a'28'3f'3d'5b'5cs'5d'2a'5b'28'5d'29 = compileRegex "\\.[a-zA-Z_\\.]+[a-zA-Z_\\.0-9]*(?=[\\s]*[(])" regex_'5c'28 = compileRegex "\\("-regex_'28'5b'5c'2b'5c'2d'5c'2a'2f'5c'5e'5c'3a'5c'24'7e'21'26'5c'7c'3d'3e'40'5e'5d'29'28'5b'3c'5d'7b1'2c2'7d'5c'2d'7c'5c'2d'5b'3e'5d'7b1'2c2'7d'29 = compileRegex "([\\+\\-\\*/\\^\\:\\$~!&\\|=>@^])([<]{1,2}\\-|\\-[>]{1,2})"-regex_'28'5b'3c'5d'7b1'2c2'7d'5c'2d'7c'5c'2d'5b'3e'5d'7b1'2c2'7d'29'28'5b'5c'2b'5c'2d'5c'2a'2f'5c'5e'5c'3a'5c'24'7e'21'26'5c'7c'3d'3c'40'5d'29 = compileRegex "([<]{1,2}\\-|\\-[>]{1,2})([\\+\\-\\*/\\^\\:\\$~!&\\|=<@])"-regex_'28'5b'3c'5d'7b3'7d'7c'5b'3e'5d'7b3'7d'29 = compileRegex "([<]{3}|[>]{3})" regex_'5b'3c'5d'7b1'2c2'7d'5c'2d = compileRegex "[<]{1,2}\\-" regex_'5c'2d'5b'3e'5d'7b1'2c2'7d = compileRegex "\\-[>]{1,2}"-regex_'28'5b'5c'2b'5c'2d'5c'2a'2f'5c'5e'5c'3a'5c'24'7e'26'5c'7c'40'5e'5d'29'3d = compileRegex "([\\+\\-\\*/\\^\\:\\$~&\\|@^])="-regex_'3d'28'5b'5c'2b'5c'2d'5c'2a'2f'5c'5e'5c'3a'5c'24'7e'21'3c'3e'26'5c'7c'40'5e'5d'29 = compileRegex "=([\\+\\-\\*/\\^\\:\\$~!<>&\\|@^])" regex_'3d'28'3f'21'3d'29 = compileRegex "=(?!=)"-regex_'28'5c'2b'7c'5c'2d'7c'5c'2a'7c'2f'7c'3c'3d'7c'3e'3d'7c'3d'7b1'2c2'7d'7c'5c'21'3d'7c'5c'7c'7b1'2c2'7d'7c'26'7b1'2c2'7d'7c'3a'7b1'2c3'7d'7c'5c'5e'7c'40'7c'5c'24'7c'7e'29'28'28'3f'21'28'5c'2b'7c'5c'2d'7c'5c'2a'7c'2f'7c'3c'3d'7c'3e'3d'7c'3d'7c'5c'21'3d'7c'5c'7c'7c'26'7c'3a'7c'5c'5e'7c'40'7c'5c'24'7c'7e'29'29'7c'24'29 = compileRegex "(\\+|\\-|\\*|/|<=|>=|={1,2}|\\!=|\\|{1,2}|&{1,2}|:{1,3}|\\^|@|\\$|~)((?!(\\+|\\-|\\*|/|<=|>=|=|\\!=|\\||&|:|\\^|@|\\$|~))|$)"-regex_'28'5c'2b'7c'5c'2d'7c'5c'2a'7c'2f'7c'3c'3d'7c'3e'3d'7c'3d'7b1'2c2'7d'7c'5c'21'3d'7c'5c'7c'7b1'2c2'7d'7c'26'7b1'2c2'7d'7c'3a'7b1'2c3'7d'7c'5c'5e'7c'40'7c'5c'24'7c'7e'29'7b2'2c'7d = compileRegex "(\\+|\\-|\\*|/|<=|>=|={1,2}|\\!=|\\|{1,2}|&{1,2}|:{1,3}|\\^|@|\\$|~){2,}"+regex_'28'5c'2b'7c'5c'2d'7c'5c'2a'7b1'2c2'7d'7c'2f'7c'3c'3d'3f'7c'3e'3d'3f'7c'3d'7b1'2c2'7d'7c'5c'21'3d'3f'7c'5c'7c'7b1'2c2'7d'7c'26'7b1'2c2'7d'7c'3a'7b1'2c3'7d'7c'5c'5e'7c'40'7c'5c'24'7c'7e'29 = compileRegex "(\\+|\\-|\\*{1,2}|/|<=?|>=?|={1,2}|\\!=?|\\|{1,2}|&{1,2}|:{1,3}|\\^|@|\\$|~)" regex_'25'5b'5e'25'5d'2a'25 = compileRegex "%[^%]*%" -defaultAttributes = [("level0",NormalTok),("ctx0",NormalTok),("parenthesis",NormalTok),("string",StringTok),("string2",StringTok),("backquotedsymbol",DataTypeTok),("Headline",NormalTok),("Comment",CommentTok),("CommonRules",NormalTok)]+defaultAttributes = [("level0",NormalTok),("ctx0",NormalTok),("parenthesis",NormalTok),("string",StringTok),("string2",StringTok),("backquotedsymbol",DataTypeTok),("operator_rhs",NormalTok),("Headline",NormalTok),("Comment",CommentTok),("CommonRules",NormalTok)] parseRules "level0" = (((parseRules "CommonRules"))@@ -128,6 +124,17 @@ <|> ((pHlCStringChar >>= withAttribute CharTok))) +parseRules "operator_rhs" =+ (((pString False "##" >>= withAttribute NormalTok) >>~ pushContext "Headline")+ <|>+ ((pDetectChar False '#' >>= withAttribute CommentTok) >>~ pushContext "Comment")+ <|>+ ((pDetectChar False ' ' >>= withAttribute StringTok))+ <|>+ ((pRegExpr regex_'28'5c'2a'7c'2f'7c'3c'7c'3e'7c'5c'21'3d'7c'3d'7c'5c'7c'7c'26'7c'3a'7c'5c'5e'7c'40'7c'5c'24'7c'7e'29 >>= withAttribute ErrorTok))+ <|>+ ((popContext) >> currentContext >>= parseRules))+ parseRules "Headline" = pzero @@ -159,27 +166,15 @@ <|> ((pDetectChar False '#' >>= withAttribute CommentTok) >>~ pushContext "Comment") <|>- ((pRegExpr regex_'28'5b'5c'2b'5c'2d'5c'2a'2f'5c'5e'5c'3a'5c'24'7e'21'26'5c'7c'3d'3e'40'5e'5d'29'28'5b'3c'5d'7b1'2c2'7d'5c'2d'7c'5c'2d'5b'3e'5d'7b1'2c2'7d'29 >>= withAttribute ErrorTok))- <|>- ((pRegExpr regex_'28'5b'3c'5d'7b1'2c2'7d'5c'2d'7c'5c'2d'5b'3e'5d'7b1'2c2'7d'29'28'5b'5c'2b'5c'2d'5c'2a'2f'5c'5e'5c'3a'5c'24'7e'21'26'5c'7c'3d'3c'40'5d'29 >>= withAttribute ErrorTok))- <|>- ((pRegExpr regex_'28'5b'3c'5d'7b3'7d'7c'5b'3e'5d'7b3'7d'29 >>= withAttribute ErrorTok))- <|>- ((pRegExpr regex_'5b'3c'5d'7b1'2c2'7d'5c'2d >>= withAttribute NormalTok))- <|>- ((pRegExpr regex_'5c'2d'5b'3e'5d'7b1'2c2'7d >>= withAttribute NormalTok))- <|>- ((pRegExpr regex_'28'5b'5c'2b'5c'2d'5c'2a'2f'5c'5e'5c'3a'5c'24'7e'26'5c'7c'40'5e'5d'29'3d >>= withAttribute ErrorTok))- <|>- ((pRegExpr regex_'3d'28'5b'5c'2b'5c'2d'5c'2a'2f'5c'5e'5c'3a'5c'24'7e'21'3c'3e'26'5c'7c'40'5e'5d'29 >>= withAttribute ErrorTok))+ ((pRegExpr regex_'5b'3c'5d'7b1'2c2'7d'5c'2d >>= withAttribute NormalTok) >>~ pushContext "operator_rhs") <|>- ((pRegExpr regex_'3d'28'3f'21'3d'29 >>= withAttribute NormalTok))+ ((pRegExpr regex_'5c'2d'5b'3e'5d'7b1'2c2'7d >>= withAttribute NormalTok) >>~ pushContext "operator_rhs") <|>- ((pRegExpr regex_'28'5c'2b'7c'5c'2d'7c'5c'2a'7c'2f'7c'3c'3d'7c'3e'3d'7c'3d'7b1'2c2'7d'7c'5c'21'3d'7c'5c'7c'7b1'2c2'7d'7c'26'7b1'2c2'7d'7c'3a'7b1'2c3'7d'7c'5c'5e'7c'40'7c'5c'24'7c'7e'29'28'28'3f'21'28'5c'2b'7c'5c'2d'7c'5c'2a'7c'2f'7c'3c'3d'7c'3e'3d'7c'3d'7c'5c'21'3d'7c'5c'7c'7c'26'7c'3a'7c'5c'5e'7c'40'7c'5c'24'7c'7e'29'29'7c'24'29 >>= withAttribute NormalTok))+ ((pRegExpr regex_'3d'28'3f'21'3d'29 >>= withAttribute NormalTok) >>~ pushContext "operator_rhs") <|>- ((pRegExpr regex_'28'5c'2b'7c'5c'2d'7c'5c'2a'7c'2f'7c'3c'3d'7c'3e'3d'7c'3d'7b1'2c2'7d'7c'5c'21'3d'7c'5c'7c'7b1'2c2'7d'7c'26'7b1'2c2'7d'7c'3a'7b1'2c3'7d'7c'5c'5e'7c'40'7c'5c'24'7c'7e'29'7b2'2c'7d >>= withAttribute ErrorTok))+ ((pRegExpr regex_'28'5c'2b'7c'5c'2d'7c'5c'2a'7b1'2c2'7d'7c'2f'7c'3c'3d'3f'7c'3e'3d'3f'7c'3d'7b1'2c2'7d'7c'5c'21'3d'3f'7c'5c'7c'7b1'2c2'7d'7c'26'7b1'2c2'7d'7c'3a'7b1'2c3'7d'7c'5c'5e'7c'40'7c'5c'24'7c'7e'29 >>= withAttribute NormalTok) >>~ pushContext "operator_rhs") <|>- ((pRegExpr regex_'25'5b'5e'25'5d'2a'25 >>= withAttribute NormalTok))+ ((pRegExpr regex_'25'5b'5e'25'5d'2a'25 >>= withAttribute NormalTok) >>~ pushContext "operator_rhs") <|> ((pDetectChar False '{' >>= withAttribute NormalTok) >>~ pushContext "ctx0") <|>
Text/Highlighting/Kate/Syntax/Ruby.hs view
@@ -1,5 +1,5 @@ {- This module was generated from data in the Kate syntax- highlighting file ruby.xml, version 1.24, by Stefan Lang (langstefan@gmx.at), Sebastian Vuorinen (sebastian.vuorinen@helsinki.fi), Robin Pedersen (robinpeder@gmail.com), Miquel Sabaté (mikisabate@gmail.com) -}+ highlighting file ruby.xml, version 1.25, by Stefan Lang (langstefan@gmx.at), Sebastian Vuorinen (sebastian.vuorinen@helsinki.fi), Robin Pedersen (robinpeder@gmail.com), Miquel Sabaté (mikisabate@gmail.com) -} module Text.Highlighting.Kate.Syntax.Ruby (highlight, parseExpression, syntaxName, syntaxExtensions)@@ -166,7 +166,7 @@ regex_'5cs'5c'3f'28'5c'5cM'5c'2d'29'3f'28'5c'5cC'5c'2d'29'3f'5c'5c'3f'5cS = compileRegex "\\s\\?(\\\\M\\-)?(\\\\C\\-)?\\\\?\\S" regex_'5c'24'5ba'2dzA'2dZ'5f0'2d9'5d'2b = compileRegex "\\$[a-zA-Z_0-9]+" regex_'5c'24'5c'2d'5ba'2dzA'2dz'5f'5d'5cb = compileRegex "\\$\\-[a-zA-z_]\\b"-regex_'5c'24'5b'5cd'5f'2a'60'5c'21'3a'3f'27'2f'5c'5c'5c'2d'5c'26'22'5d = compileRegex "\\$[\\d_*`\\!:?'/\\\\\\-\\&\"]"+regex_'5c'24'5b'5cd'5f'2a'60'2b'40'3b'2c'2e'7e'3d'5c'21'5c'24'3a'3f'27'2f'5c'5c'5c'2d'5c'26'22'3e'3c'5d = compileRegex "\\$[\\d_*`+@;,.~=\\!\\$:?'/\\\\\\-\\&\"><]" regex_'5cb'5b'5fA'2dZ'5d'2b'5bA'2dZ'5f0'2d9'5d'2b'5cb = compileRegex "\\b[_A-Z]+[A-Z_0-9]+\\b" regex_'5cb'5bA'2dZ'5d'2b'5f'2a'28'5b0'2d9'5d'7c'5ba'2dz'5d'29'5b'5fa'2dzA'2dZ0'2d9'5d'2a'5cb = compileRegex "\\b[A-Z]+_*([0-9]|[a-z])[_a-zA-Z0-9]*\\b" regex_'5cb'5c'2d'3f0'5bxX'5d'5b'5f0'2d9a'2dfA'2dF'5d'2b = compileRegex "\\b\\-?0[xX][_0-9a-fA-F]+"@@ -310,7 +310,7 @@ <|> ((pRegExpr regex_'5c'24'5c'2d'5ba'2dzA'2dz'5f'5d'5cb >>= withAttribute DataTypeTok) >>~ pushContext "check_div_1") <|>- ((pRegExpr regex_'5c'24'5b'5cd'5f'2a'60'5c'21'3a'3f'27'2f'5c'5c'5c'2d'5c'26'22'5d >>= withAttribute DataTypeTok) >>~ pushContext "check_div_1")+ ((pRegExpr regex_'5c'24'5b'5cd'5f'2a'60'2b'40'3b'2c'2e'7e'3d'5c'21'5c'24'3a'3f'27'2f'5c'5c'5c'2d'5c'26'22'3e'3c'5d >>= withAttribute DataTypeTok) >>~ pushContext "check_div_1") <|> ((pRegExpr regex_'5cb'5b'5fA'2dZ'5d'2b'5bA'2dZ'5f0'2d9'5d'2b'5cb >>= withAttribute DataTypeTok) >>~ pushContext "check_div_2") <|>
Text/Highlighting/Kate/Syntax/Tcl.hs view
@@ -1,5 +1,5 @@ {- This module was generated from data in the Kate syntax- highlighting file tcl.xml, version 1.10, by -}+ highlighting file tcl.xml, version 1.11, by -} module Text.Highlighting.Kate.Syntax.Tcl (highlight, parseExpression, syntaxName, syntaxExtensions)@@ -62,7 +62,7 @@ context <- currentContext parseRules context <|> (pDefault >>= withAttribute (fromMaybe NormalTok $ lookup context defaultAttributes)) -list_keywords = Set.fromList $ words $ "after append AppleScript argv argc array auto_execk auto_load auto_mkindex auto_path auto_reset beep bell binary bind bindtags bgerror break button canvas case catch cd checkbutton clipboard clock close concat console continue dde destroy else elseif encoding entry env eof error errorCode errorInfo eval event exec exit expr fblocked fconfigure fcopy file fileevent flush focus font for foreach format frame gets glob global grab grid history if image incr info interp join label lappend lindex linsert list listbox llength load lower lrange lreplace lsearch lsort menu menubutton message namespace open option OptProc pack package parray pid place pkg_mkindex proc puts pwd radiobutton raise read regexp registry regsub rename resource return scale scan scrollbar seek selection send set socket source split string subst switch tclLog tcl_endOfWord tcl_findLibrary tcl_library tcl_patchLevel tcl_platform tcl_precision tcl_rcFileName tcl_rcRsrcName tcl_startOfNextWord tcl_startOfPreviousWord tcl_traceCompile tcl_traceExec tcl_version tcl_wordBreakAfter tcl_wordBreakBefore tell text time tk tkTabToWindow tkwait tk_chooseColor tk_chooseDirectory tk_focusFollowMouse tk_focusNext tk_focusPrev tk_getOpenFile tk_getSaveFile tk_library tk_messageBox tk_optionMenu tk_patchLevel tk_popup tk_strictMotif tk_version toplevel trace unknown unset update uplevel upvar variable vwait while winfo wm"+list_keywords = Set.fromList $ words $ "after append AppleScript argv argc array auto_execk auto_execok auto_import auto_load auto_mkindex auto_mkindex_old auto_path auto_qualify auto_reset beep bell binary bind bindtags bgerror break button canvas case catch cd chan checkbutton clipboard clock close combobox concat console continue dde destroy dict else elseif encoding entry env eof error errorCode errorInfo eval event exec exit expr fblocked fconfigure fcopy file fileevent flush focus font for foreach format frame gets glob global grab grid history if image incr info interp join label labelframe lappend lassign lindex linsert list listbox llength load lower lrange lremove lrepeat lreplace lreverse lsearch lset lsort menu menubutton message namespace notebook open option OptProc pack package panedwindow parray pid place pkg_mkIndex proc progressbar puts pwd radiobutton raise read regexp registry regsub rename resource return scale scan scrollbar seek selection send separator set sizegrip socket source spinbox split string style subst switch tclLog tcl_endOfWord tcl_findLibrary tcl_library tcl_patchLevel tcl_platform tcl_precision tcl_rcFileName tcl_rcRsrcName tcl_startOfNextWord tcl_startOfPreviousWord tcl_traceCompile tcl_traceExec tcl_version tcl_wordBreakAfter tcl_wordBreakBefore tell text time tk tkTabToWindow tkwait tk_chooseColor tk_chooseDirectory tk_focusFollowMouse tk_focusNext tk_focusPrev tk_getOpenFile tk_getSaveFile tk_library tk_menuSetFocus tk_messageBox tk_optionMenu tk_patchLevel tk_popup tk_strictMotif tk_textCopy tk_textCut tk_textPaste tk_version toplevel trace traverseTo treeview unknown unload unset update uplevel upvar variable vwait while winfo wm" list_keywords'2dopt = Set.fromList $ words $ "add args atime attributes body bytelength cancel channels clicks cmdcount commands compare complete convertfrom convertto copy default delete dirname equal executable exists extension first forget format functions globals hostname idle ifneeded index info is isdirectory isfile join last length level library link loaded locals lstat map match mkdir mtime nameofexecutable names nativename normalize number owned patchlevel pathtype present procs provide range readable readlink remove rename repeat replace require rootname scan script seconds separator sharedlibextension size split stat system tail tclversion tolower totitle toupper trim trimleft trimright type unknown variable vars vcompare vdelete versions vinfo volumes vsatisfies wordend wordstart writable activate actual addtag append appname aspect atom atomname bbox bind broadcast canvasx canvasy caret cells cget children class clear client clone colormapfull colormapwindows command configure containing coords create current curselection dchars debug deiconify delta depth deselect dlineinfo dtag dump edit entrycget entryconfigure families find flash focus focusmodel fpixels fraction frame generate geometry get gettags grid group handle height hide iconbitmap iconify iconmask iconname iconposition iconwindow icursor id identify image insert interps inuse invoke ismapped itemcget itemconfigure keys lower manager mark maxsize measure metrics minsize move name nearest overrideredirect own panecget paneconfigure panes parent pathname pixels pointerx pointerxy pointery positionfrom post postcascade postscript protocol proxy raise release reqheight reqwidth resizable rgb rootx rooty scale scaling screen screencells screendepth screenheight screenmmheight screenmmwidth screenvisual screenwidth search see select selection server set show sizefrom stackorder state status tag title toplevel transient types unpost useinputmethods validate values viewable visual visualid visualsavailable vrootheight vrootwidth vrootx vrooty width window windowingsystem withdraw x xview y" regex_'23'5cs'2aBEGIN'2e'2a'24 = compileRegex "#\\s*BEGIN.*$"
changelog view
@@ -1,3 +1,9 @@+highlighting-kate 0.5.2 (10 Aug 2012)++ * Updated xml syntax definitions from kate repository:+ bash, c, clojure, coffee (formerly coffeescript),+ cpp, doxygen, fortran, go, latex, prolog, r, ruby, tcl.+ highlighting-kate 0.5.1 (29 May 2012) * Fixed inline LaTeX formatting: it should be `|...|`
highlighting-kate.cabal view
@@ -1,5 +1,5 @@ Name: highlighting-kate-Version: 0.5.1+Version: 0.5.2 Cabal-Version: >= 1.6 Build-Type: Simple Category: Text@@ -42,7 +42,7 @@ xml/changelog.xml xml/clojure.xml xml/cmake.xml- xml/coffeescript.xml+ xml/coffee.xml xml/coldfusion.xml xml/commonlisp.xml xml/cpp.xml@@ -168,7 +168,7 @@ Text.Highlighting.Kate.Syntax.Changelog Text.Highlighting.Kate.Syntax.Clojure Text.Highlighting.Kate.Syntax.Cmake- Text.Highlighting.Kate.Syntax.Coffeescript+ Text.Highlighting.Kate.Syntax.Coffee Text.Highlighting.Kate.Syntax.Coldfusion Text.Highlighting.Kate.Syntax.Commonlisp Text.Highlighting.Kate.Syntax.Cpp
xml/bash.xml view
@@ -8,7 +8,7 @@ <!ENTITY noword "(?![\w$+-])"> <!-- no word, $, + or - following --> <!ENTITY pathpart "([\w_@.%*?+-]|\\ )"> <!-- valid character in a file name --> ]>-<language name="Bash" version="2.12" kateversion="2.4" section="Scripts" extensions="*.sh;*.bash;*.ebuild;*.eclass;.bashrc;.bash_profile;.bash_login;.profile" mimetype="application/x-shellscript" casesensitive="1" author="Wilbert Berendsen (wilbert@kde.nl)" license="LGPL">+<language name="Bash" version="2.14" kateversion="2.4" section="Scripts" extensions="*.sh;*.bash;*.ebuild;*.eclass;.bashrc;.bash_profile;.bash_login;.profile" mimetype="application/x-shellscript" casesensitive="1" author="Wilbert Berendsen (wilbert@kde.nl)" license="LGPL"> <!-- (c) 2004 by Wilbert Berendsen (wilbert@kde.nl) Changes by Matthew Woehlke (mw_triad@users.sourceforge.net)@@ -517,7 +517,7 @@ <!-- match do and if blocks --> <RegExpr attribute="Keyword" context="#stay" String="\bdo&noword;" beginRegion="do" /> <RegExpr attribute="Keyword" context="#stay" String="\bdone&noword;" endRegion="do" />- <RegExpr attribute="Keyword" context="#stay" String="\bif &noword;" beginRegion="if" />+ <RegExpr attribute="Keyword" context="#stay" String="\bif&eos;" beginRegion="if" /> <RegExpr attribute="Keyword" context="#stay" String="\bfi&noword;" endRegion="if" /> <!-- handle case as a special case --> <RegExpr attribute="Keyword" context="Case" String="\bcase&noword;" beginRegion="case" />@@ -564,8 +564,8 @@ <!-- FindStrings looks for single and double quoted strings, also with $-prefix --> <context attribute="Normal Text" lineEndContext="#stay" name="FindStrings">- <Detect2Chars attribute="Escape" context="#stay" char="\" char1="'" />- <Detect2Chars attribute="Escape" context="#stay" char="\" char1=""" />+ <Detect2Chars attribute="Escape" context="#stay" char="\\" char1="'" />+ <Detect2Chars attribute="Escape" context="#stay" char="\\" char1=""" /> <DetectChar attribute="String SingleQ" context="StringSQ" char="'" /> <DetectChar attribute="String DoubleQ" context="StringDQ" char=""" /> <Detect2Chars attribute="String SingleQ" context="StringEsc" char="$" char1="'" />
xml/c.xml view
@@ -133,6 +133,7 @@ <RangeDetect attribute="Prep. Lib" context="#stay" char="<" char1=">"/> <IncludeRules context="##Doxygen" /> <Detect2Chars attribute="Comment" context="Commentar/Preprocessor" char="/" char1="*" beginRegion="Comment2" />+ <Detect2Chars attribute="Comment" context="Commentar 1" char="/" char1="/" /> </context> <context attribute="Preprocessor" lineEndContext="#pop" name="Define">
xml/clojure.xml view
@@ -3,8 +3,7 @@ <!-- This file is part of KDE's kate project. - copyright : (C) 2004 by Dominik Haumann- email : dhdev at gmx dot de+ copyright : (C) 2004 by Dominik Haumann, (C) 2011 by Caspar Hasenclever ********************************************************************** * This library is free software; you can redistribute it and/or *@@ -23,7 +22,7 @@ * Boston, MA 02110-1301, USA. * ********************************************************************** -->-<language version="1.05" kateversion="2.3" name="Clojure" section="Sources" extensions="*.clj" mimetype="" author="Dominik Haumann (dhdev@gmx.de)" license="LGPL">+<language version="2" kateversion="2.3" name="Clojure" section="Sources" extensions="*.clj" mimetype="" author="Dominik Haumann [lisp] modified for clojure by Caspar Hasenclever" license="LGPL"> <highlighting> <list name="definitions"> <item> def </item>@@ -639,6 +638,7 @@ <item> with-test </item> <item> with-test-out </item> <item> xml-seq </item>+ <item> zero? </item> </list> <list name="variables"> <item> *1 </item>@@ -682,20 +682,22 @@ <item> *warn-on-reflection* </item> </list> <contexts>- <context name="Normal" attribute="Normal" lineEndContext="#stay">+ <context name="Level0" attribute="Normal" lineEndContext="#stay">+ <DetectChar attribute="Brackets1" context="Level1" char="("/>+ <Detect2Chars attribute="Brackets1" context="Level1" char="#" char1="("/>+ <IncludeRules context="Default" />+ </context>+ <context name="Default" attribute="Normal" lineEndContext="#stay"> <RegExpr attribute="Comment" context="#stay" String=";.*$"/> <Detect2Chars attribute="Comment" context="#stay" char="#" char1="_"/>- <RegExpr attribute="Modifier" context="#stay" String=":\S+"/> <RegExpr attribute="Modifier" context="#stay" String="[@~]\S+"/>- <Detect2Chars attribute="Brackets" context="#stay" char="#" char1="("/>- <DetectChar attribute="Brackets" context="#stay" char="("/>- <DetectChar attribute="Brackets" context="#stay" char=")"/>+ <RegExpr attribute="Modifier2" context="#stay" String="::?[a-zA-Z0-9\-]+"/> <Detect2Chars attribute="Brackets" context="#stay" char="#" char1="{"/> <Detect2Chars attribute="Brackets" context="#stay" char="^" char1="{"/>- <DetectChar attribute="Brackets" context="#stay" char="{"/>- <DetectChar attribute="Brackets" context="#stay" char="}"/>- <DetectChar attribute="Brackets" context="#stay" char="["/>- <DetectChar attribute="Brackets" context="#stay" char="]"/>+ <DetectChar attribute="BracketsCurly" context="#stay" char="{"/>+ <DetectChar attribute="BracketsCurly" context="#stay" char="}"/>+ <DetectChar attribute="BracketsSquare" context="#stay" char="["/>+ <DetectChar attribute="BracketsSquare" context="#stay" char="]"/> <Detect2Chars attribute="Variable" context="#stay" char="#" char1="'"/> <keyword attribute="Keyword" context="#stay" String="keywords"/> <keyword attribute="Variable" context="#stay" String="variables"/>@@ -705,6 +707,7 @@ <DetectChar attribute="String" context="String" char="""/> <Float attribute="Float" context="#stay"/> <Int attribute="Decimal" context="#stay"/>+ <DetectChar attribute="Brackets1" context="Level1" char="("/> </context> <context name="function_decl" attribute="Function" lineEndContext="#stay"> <RegExpr attribute="Function" context="#pop" String="\s*[A-Za-z0-9-+\<\>//\*]*\s*"/>@@ -720,12 +723,49 @@ <HlCStringChar attribute="String Char" context="#stay"/> <DetectChar attribute="String" context="#pop" char="""/> </context>+ <context name="Level1" attribute="Normal" lineEndContext="#stay">+ <DetectChar attribute="Brackets2" context="Level2" char="("/>+ <Detect2Chars attribute="Brackets2" context="Level2" char="#" char1="("/>+ <DetectChar attribute="Brackets1" context="#pop" char=")" />+ <IncludeRules context="Default" />+ </context>+ <context name="Level2" attribute="Normal" lineEndContext="#stay">+ <DetectChar attribute="Brackets3" context="Level3" char="("/>+ <Detect2Chars attribute="Brackets3" context="Level3" char="#" char1="("/>+ <DetectChar attribute="Brackets2" context="#pop" char=")" />+ <IncludeRules context="Default" />+ </context>+ <context name="Level3" attribute="Normal" lineEndContext="#stay">+ <DetectChar attribute="Brackets4" context="Level4" char="("/>+ <Detect2Chars attribute="Brackets4" context="Level4" char="#" char1="("/>+ <DetectChar attribute="Brackets3" context="#pop" char=")" />+ <IncludeRules context="Default" />+ </context>+ <context name="Level4" attribute="Normal" lineEndContext="#stay">+ <DetectChar attribute="Brackets5" context="Level5" char="("/>+ <Detect2Chars attribute="Brackets5" context="Level5" char="#" char1="("/>+ <DetectChar attribute="Brackets4" context="#pop" char=")" />+ <IncludeRules context="Default" />+ </context>+ <context name="Level5" attribute="Normal" lineEndContext="#stay">+ <DetectChar attribute="Brackets6" context="Level6" char="("/>+ <Detect2Chars attribute="Brackets6" context="Level6" char="#" char1="("/>+ <DetectChar attribute="Brackets5" context="#pop" char=")" />+ <IncludeRules context="Default" />+ </context>+ <context name="Level6" attribute="Normal" lineEndContext="#stay">+ <DetectChar attribute="Brackets1" context="Level1" char="("/>+ <Detect2Chars attribute="Brackets1" context="Level1" char="#" char1="("/>+ <DetectChar attribute="Brackets6" context="#pop" char=")" />+ <IncludeRules context="Default" />+ </context> </contexts> <itemDatas> <itemData name="Normal" defStyleNum="dsNormal"/> <itemData name="Keyword" defStyleNum="dsKeyword"/> <itemData name="Operator" defStyleNum="dsKeyword" color="#d22811"/> <itemData name="Modifier" defStyleNum="dsKeyword" color="#800000"/>+ <itemData name="Modifier2" defStyleNum="dsKeyword" color="#555555"/> <itemData name="Variable" defStyleNum="dsKeyword" color="#b07e1f"/> <itemData name="Definition" defStyleNum="dsKeyword" color="#d22811"/> <itemData name="Data" defStyleNum="dsDataType"/>@@ -738,6 +778,14 @@ <itemData name="Comment" defStyleNum="dsComment"/> <itemData name="Region Marker" defStyleNum="dsRegionMarker"/> <itemData name="Brackets" defStyleNum="dsNormal" color="#0000ff" selColor="#00ff00" bold="1" italic="0"/>+ <itemData name="BracketsSquare" defStyleNum="dsNormal" color="#3333ff" selColor="#3333aa"/>+ <itemData name="BracketsCurly" defStyleNum="dsNormal" color="#206620" selColor="#219921"/>+ <itemData name="Brackets1" defStyleNum="dsNormal" color="#ff0000" selColor="#ffaa00" bold="0" italic="0"/>+ <itemData name="Brackets2" defStyleNum="dsNormal" color="#ff8800" selColor="#ffff00" bold="0" italic="0"/>+ <itemData name="Brackets3" defStyleNum="dsNormal" color="#888800" selColor="#888888" bold="0" italic="0"/>+ <itemData name="Brackets4" defStyleNum="dsNormal" color="#008800" selColor="#000000" bold="0" italic="0"/>+ <itemData name="Brackets5" defStyleNum="dsNormal" color="#000088" selColor="#000000" bold="0" italic="0"/>+ <itemData name="Brackets6" defStyleNum="dsNormal" color="#880088" selColor="#000000" bold="0" italic="0"/> </itemDatas> </highlighting> <general>
+ xml/coffee.xml view
@@ -0,0 +1,267 @@+<?xml version="1.0" encoding="UTF-8"?>+<!DOCTYPE language SYSTEM "language.dtd">++<language name="CoffeeScript"+ version="1.3"+ kateversion="2.4"+ section="Scripts"+ extensions="Cakefile;*.coffee;*.coco"+ mimetype="text/x-coffeescript;application/x-coffeescript"+ indenter="python"+ casesensitive="1"+ author="Max Shawabkeh (max99x@gmail.com)"+ license="MIT">+ <highlighting>+ <!-- Built-in constants. -->+ <list name="value_keywords">+ <item>false</item>+ <item>true</item>+ <item>yes</item>+ <item>no</item>+ <item>on</item>+ <item>off</item>+ <item>undefined</item>+ <item>null</item>+ <item>NaN</item>+ <item>Infinity</item>+ </list>+ <!-- Generic keywords. -->+ <list name="keywords">+ <item>return</item>+ <item>break</item>+ <item>continue</item>+ <item>throw</item>+ <item>for</item>+ <item>while</item>+ <item>until</item>+ <item>loop</item>+ <item>if</item>+ <item>else</item>+ <item>unless</item>+ <item>switch</item>+ <item>when</item>+ <item>then</item>+ <item>and</item>+ <item>or</item>+ <item>in</item>+ <item>of</item>+ <item>by</item>+ <item>is</item>+ <item>isnt</item>+ <item>not</item>+ <item>typeof</item>+ <item>delete</item>+ <item>where</item>+ <item>super</item>+ <item>try</item>+ <item>catch</item>+ <item>finally</item>+ <item>try</item>+ <item>catch</item>+ <item>finally</item>+ <item>constructor</item>+ </list>+ <!-- Keywords which are always followed by a class name. -->+ <list name="class_keywords">+ <item>class</item>+ <item>extends</item>+ <item>new</item>+ <item>instanceof</item>+ </list>+ <!-- Reserved words. -->+ <list name="reserved">+ <item>case</item>+ <item>default</item>+ <item>function</item>+ <item>var</item>+ <item>void</item>+ <item>with</item>+ <item>const</item>+ <item>let</item>+ <item>enum</item>+ <item>export</item>+ <item>import</item>+ <item>native</item>+ <item>__hasProp</item>+ <item>__extends</item>+ <item>__slice</item>+ <item>__bind</item>+ <item>__indexOf</item>+ </list>+ <!-- Built-in globals provided in most contexts. -->+ <list name="globals">+ <item>Object</item>+ <item>Number</item>+ <item>Boolean</item>+ <item>Array</item>+ <item>String</item>+ <item>RegExp</item>+ <item>Function</item>+ <item>Date</item>+ <item>Math</item>+ <item>eval</item>+ <item>setInterval</item>+ <item>clearInterval</item>+ <item>setTimeout</item>+ <item>clearTimeout</item>+ <item>isFinite</item>+ <item>isNaN</item>+ <item>parseFloat</item>+ <item>parseInt</item>+ <item>escape</item>+ <item>unescape</item>+ <item>console</item>+ <item>encodeURI</item>+ <item>encodeURIComponent</item>+ <item>decodeURI</item>+ <item>decodeURIComponent</item>+ </list>+ <!-- Built-in globals provided in browser context. -->+ <list name="browser_globals">+ <item>window</item>+ <item>document</item>+ <item>navigator</item>+ <item>location</item>+ <item>history</item>+ <item>screen</item>+ <item>alert</item>+ <item>prompt</item>+ </list>+ <!-- Built-in globals provided in Node.js context. -->+ <list name="nodejs_globals">+ <item>process</item>+ <item>GLOBAL</item>+ <item>require</item>+ <item>exports</item>+ </list>+ <!-- Context-sensitive highlighting rules. -->+ <contexts>+ <!-- Generic code. -->+ <context name="Normal" attribute="Normal" lineEndContext="#stay">+ <DetectSpaces/>+ <!-- Numbers. -->+ <Float attribute="Float" context="#stay"/>+ <Int attribute="Decimal" context="#stay"/>+ <HlCOct attribute="Oct" context="#stay"/>+ <HlCHex attribute="Hex" context="#stay"/>+ <!-- Keywords. -->+ <keyword attribute="Keyword" context="#stay" String="keywords"/>+ <keyword attribute="Keyword" context="Class" String="class_keywords"/>+ <keyword attribute="Value Keywords" context="#stay" String="value_keywords"/>+ <keyword attribute="Reserved" context="#stay" String="reserved"/>+ <!-- Globals. -->+ <keyword attribute="Globals" context="#stay" String="globals"/>+ <keyword attribute="Browser Globals" context="#stay" String="browser_globals"/>+ <keyword attribute="Node.js Globals" context="#stay" String="nodejs_globals"/>+ <!-- Member accessors. -->+ <RegExpr attribute="Accessor" context="#stay" String="(@[_$a-zA-Z][$\w]*|\bthis)\b" insensitive="false"/>+ <!-- Function definitions. Matches an optional argument list followed by a function arrow (normal or fat). -->+ <RegExpr attribute="Function" context="#stay" String="(\((\'[^']*'|"[^"]*"|[^()])*\))?\s*(-|=)>" insensitive="true"/>+ <!-- Generic identifiers. -->+ <RegExpr attribute="Identifier" context="#stay" String="[_$a-z][$\w]*\b" insensitive="true"/>+ <!-- Strings. -->+ <StringDetect attribute="String" context="Heredoc" String="'''" beginRegion="Heredoc"/>+ <StringDetect attribute="String" context="Rich Heredoc" String=""""" beginRegion="Rich Heredoc"/>+ <DetectChar attribute="String" context="String" char="'"/>+ <DetectChar attribute="String" context="Rich String" char="""/>+ <!-- Embedded JavaScript. -->+ <DetectChar attribute="Javascript" context="Javascript" char="`" beginRegion="Javascript"/>+ <!-- Comments. -->+ <StringDetect attribute="Comment" context="Multiline Comment" String="###" beginRegion="Comment"/>+ <DetectChar attribute="Comment" context="Comment" char="#"/>+ <!-- Regular expressions. -->+ <RegExpr attribute="Regex" context="Multiline Regex" String="///" beginRegion="Multiline Regex"/>+ <RegExpr attribute="Regex" context="#stay" String="/([^/\\\r\n]|\\.)*/[mig]{0,3}"/>+ <!-- Operators and other non-alphanumeric symbols. -->+ <AnyChar attribute="Symbol" context="#stay" String="():!%&+,-/.*<=>?[]|~^;{}"/>+ </context>+ <!-- Multiline regular expressions. -->+ <context name="Multiline Regex" attribute="Regex" lineEndContext="#stay" noIndentationBasedFolding="1">+ <HlCStringChar attribute="Regex" context="#stay"/>+ <DetectChar attribute="Comment" context="Comment" char="#"/>+ <RegExpr attribute="Regex" context="#pop" String="///[mig]{0,3}" endRegion="Multiline Regex"/>+ </context>+ <!-- Class names. -->+ <context name="Class" attribute="Normal" lineEndContext="#stay">+ <DetectSpaces/>+ <RegExpr attribute="Class" context="#pop" String="[@$:.\w\[\]]+"/>+ </context>+ <!-- Comments. -->+ <context name="Comment" attribute="Comment" lineEndContext="#pop">+ <IncludeRules context="##Alerts_indent"/>+ </context>+ <context name="Multiline Comment" attribute="Comment" lineEndContext="#stay" noIndentationBasedFolding="1">+ <StringDetect attribute="Comment" context="#pop" String="###" endRegion="Comment"/>+ <IncludeRules context="##Alerts_indent"/>+ </context>+ <!-- Single-line strings. -->+ <context name="String" attribute="String" lineEndContext="#stay">+ <HlCStringChar attribute="String" context="#stay"/>+ <DetectChar attribute="String" context="#pop" char="'"/>+ </context>+ <context name="Rich String" attribute="String" lineEndContext="#stay">+ <HlCStringChar attribute="String" context="#stay"/>+ <Detect2Chars attribute="Embedding" context="Embedding" char="#" char1="{"/>+ <DetectChar attribute="String" context="#pop" char="""/>+ </context>+ <!-- Multi-line strings. -->+ <context name="Heredoc" attribute="String" lineEndContext="#stay" noIndentationBasedFolding="1">+ <HlCStringChar attribute="String" context="#stay"/>+ <StringDetect attribute="String" context="#pop" String="'''" endRegion="Heredoc"/>+ </context>+ <context name="Rich Heredoc" attribute="String" lineEndContext="#stay" noIndentationBasedFolding="1">+ <HlCStringChar attribute="String" context="#stay"/>+ <Detect2Chars attribute="Embedding" context="Embedding" char="#" char1="{"/>+ <StringDetect attribute="String" context="#pop" String=""""" endRegion="Rich Heredoc"/>+ </context>+ <!-- Expressions embedded in strings. -->+ <context name="Embedding" attribute="Normal" lineEndContext="#stay">+ <DetectChar attribute="Embedding" context="#pop" char="}"/>+ </context>+ <!-- Embedded Javascript. -->+ <context name="Javascript" attribute="Javascript" lineEndContext="#stay" noIndentationBasedFolding="1">+ <DetectChar attribute="Javascript" context="#pop" char="`" endRegion="Javascript"/>+ <!-- NOTE: This hides errors where a backtick is embedded in a JS string. -->+ <IncludeRules context="##JavaScript" includeAttrib="true"/>+ </context>+ </contexts>+ <!-- Style mappings. -->+ <itemDatas>+ <itemData name="Normal" defStyleNum="dsNormal" spellChecking="false"/>+ <itemData name="Identifier" defStyleNum="dsNormal" spellChecking="false"/>+ <itemData name="Keyword" defStyleNum="dsKeyword" spellChecking="false"/>+ <itemData name="Function" defStyleNum="dsFunction" spellChecking="false"/>+ <itemData name="Decimal" defStyleNum="dsDecVal" spellChecking="false"/>+ <itemData name="Float" defStyleNum="dsFloat" spellChecking="false"/>+ <itemData name="Oct" defStyleNum="dsBaseN" spellChecking="false"/>+ <itemData name="Hex" defStyleNum="dsBaseN" spellChecking="false"/>+ <itemData name="String" defStyleNum="dsString" spellChecking="false"/>+ <itemData name="Comment" defStyleNum="dsComment" spellChecking="true"/>+ <itemData name="Symbol" defStyleNum="dsKeyword" spellChecking="false"/>+ <itemData name="Embedding" defStyleNum="dsChar" spellChecking="false"/>+ <itemData name="Accessor" defStyleNum="dsDataType" spellChecking="false"/>+ <itemData name="Class" defStyleNum="dsDataType" spellChecking="false" bold="1"/>+ <itemData name="Javascript" defStyleNum="dsAlert" spellChecking="false" italic="1"/>+ <itemData name="Regex" defStyleNum="dsString" spellChecking="false"/>+ <itemData name="Reserved" defStyleNum="dsAlert" spellChecking="false"/>+ <itemData name="Value Keywords" defStyleNum="dsOthers" spellChecking="false"/>+ <itemData name="Globals" defStyleNum="dsOthers" spellChecking="false"/>+ <!-- Context-sensitive globals - not styled by default. -->+ <itemData name="Browser Globals" defStyleNum="dsNormal" spellChecking="false"/>+ <itemData name="Node.js Globals" defStyleNum="dsNormal" spellChecking="false"/>+ </itemDatas>+ </highlighting>+ <!-- Global settings. -->+ <general>+ <indentation mode="python"/>+ <folding indentationsensitive="1"/>+ <comments>+ <comment name="singleLine" start="#"/>+ <comment name="multiLine" start="###" end="###" region="Comment"/>+ </comments>+ <keywords casesensitive="1" additionalDeliminator="#'"/>+ <emptyLines>+ <emptyLine regexpr="(?:\s+|\s*#.*)"/>+ </emptyLines>+ </general>+</language>
− xml/coffeescript.xml
@@ -1,267 +0,0 @@-<?xml version="1.0" encoding="UTF-8"?>-<!DOCTYPE language SYSTEM "language.dtd">--<language name="CofeeScript"- version="1.1"- kateversion="2.4"- section="Scripts"- extensions="Cakefile;*.coffee;*.coco"- mimetype="text/x-cofeescript;application/x-cofeescript"- indenter="python"- casesensitive="1"- author="Max Shawabkeh (max99x@gmail.com)"- license="MIT">- <highlighting>- <!-- Built-in constants. -->- <list name="value_keywords">- <item>false</item>- <item>true</item>- <item>yes</item>- <item>no</item>- <item>on</item>- <item>off</item>- <item>undefined</item>- <item>null</item>- <item>NaN</item>- <item>Infinity</item>- </list>- <!-- Generic keywords. -->- <list name="keywords">- <item>return</item>- <item>break</item>- <item>continue</item>- <item>throw</item>- <item>for</item>- <item>while</item>- <item>until</item>- <item>loop</item>- <item>if</item>- <item>else</item>- <item>unless</item>- <item>switch</item>- <item>when</item>- <item>then</item>- <item>and</item>- <item>or</item>- <item>in</item>- <item>of</item>- <item>by</item>- <item>is</item>- <item>isnt</item>- <item>not</item>- <item>typeof</item>- <item>delete</item>- <item>where</item>- <item>super</item>- <item>try</item>- <item>catch</item>- <item>finally</item>- <item>try</item>- <item>catch</item>- <item>finally</item>- <item>constructor</item>- </list>- <!-- Keywords which are always followed by a class name. -->- <list name="class_keywords">- <item>class</item>- <item>extends</item>- <item>new</item>- <item>instanceof</item>- </list>- <!-- Reserved words. -->- <list name="reserved">- <item>case</item>- <item>default</item>- <item>function</item>- <item>var</item>- <item>void</item>- <item>with</item>- <item>const</item>- <item>let</item>- <item>enum</item>- <item>export</item>- <item>import</item>- <item>native</item>- <item>__hasProp</item>- <item>__extends</item>- <item>__slice</item>- <item>__bind</item>- <item>__indexOf</item>- </list>- <!-- Built-in globals provided in most contexts. -->- <list name="globals">- <item>Object</item>- <item>Number</item>- <item>Boolean</item>- <item>Array</item>- <item>String</item>- <item>RegExp</item>- <item>Function</item>- <item>Date</item>- <item>Math</item>- <item>eval</item>- <item>setInterval</item>- <item>clearInterval</item>- <item>setTimeout</item>- <item>clearTimeout</item>- <item>isFinite</item>- <item>isNaN</item>- <item>parseFloat</item>- <item>parseInt</item>- <item>escape</item>- <item>unescape</item>- <item>console</item>- <item>encodeURI</item>- <item>encodeURIComponent</item>- <item>decodeURI</item>- <item>decodeURIComponent</item>- </list>- <!-- Built-in globals provided in browser context. -->- <list name="browser_globals">- <item>window</item>- <item>document</item>- <item>navigator</item>- <item>location</item>- <item>history</item>- <item>screen</item>- <item>alert</item>- <item>prompt</item>- </list>- <!-- Built-in globals provided in Node.js context. -->- <list name="nodejs_globals">- <item>process</item>- <item>GLOBAL</item>- <item>require</item>- <item>exports</item>- </list>- <!-- Context-sensitive highlighting rules. -->- <contexts>- <!-- Generic code. -->- <context name="Normal" attribute="Normal" lineEndContext="#stay">- <DetectSpaces/>- <!-- Numbers. -->- <Float attribute="Float" context="#stay"/>- <Int attribute="Decimal" context="#stay"/>- <HlCOct attribute="Oct" context="#stay"/>- <HlCHex attribute="Hex" context="#stay"/>- <!-- Keywords. -->- <keyword attribute="Keyword" context="#stay" String="keywords"/>- <keyword attribute="Keyword" context="Class" String="class_keywords"/>- <keyword attribute="Value Keywords" context="#stay" String="value_keywords"/>- <keyword attribute="Reserved" context="#stay" String="reserved"/>- <!-- Globals. -->- <keyword attribute="Globals" context="#stay" String="globals"/>- <keyword attribute="Browser Globals" context="#stay" String="browser_globals"/>- <keyword attribute="Node.js Globals" context="#stay" String="nodejs_globals"/>- <!-- Member accessors. -->- <RegExpr attribute="Accessor" context="#stay" String="(@[_$a-zA-Z][$\w]+|\bthis)\b" insensitive="false"/>- <!-- Function definitions. Matches an optional argument list followed by a function arrow (normal or fat). -->- <RegExpr attribute="Function" context="#stay" String="(\((\'[^']*'|"[^"]*"|[^()])*\))?\s*(-|=)>" insensitive="true"/>- <!-- Generic identifiers. -->- <RegExpr attribute="Identifier" context="#stay" String="[_$a-z][$\w]+\b" insensitive="true"/>- <!-- Strings. -->- <StringDetect attribute="String" context="Heredoc" String="'''" beginRegion="Heredoc"/>- <StringDetect attribute="String" context="Rich Heredoc" String=""""" beginRegion="Rich Heredoc"/>- <DetectChar attribute="String" context="String" char="'"/>- <DetectChar attribute="String" context="Rich String" char="""/>- <!-- Embedded JavaScript. -->- <DetectChar attribute="Javascript" context="Javascript" char="`" beginRegion="Javascript"/>- <!-- Comments. -->- <StringDetect attribute="Comment" context="Multiline Comment" String="###" beginRegion="Comment"/>- <DetectChar attribute="Comment" context="Comment" char="#"/>- <!-- Regular expressions. -->- <RegExpr attribute="Regex" context="Multiline Regex" String="///" beginRegion="Multiline Regex"/>- <RegExpr attribute="Regex" context="#stay" String="/([^/\\\r\n]|\\.)*/[mig]{0,3}"/>- <!-- Operators and other non-alphanumeric symbols. -->- <AnyChar attribute="Symbol" context="#stay" String="():!%&+,-/.*<=>?[]|~^;{}"/>- </context>- <!-- Multiline regular expressions. -->- <context name="Multiline Regex" attribute="Regex" lineEndContext="#stay" noIndentationBasedFolding="1">- <HlCStringChar attribute="Regex" context="#stay"/>- <DetectChar attribute="Comment" context="Comment" char="#"/>- <RegExpr attribute="Regex" context="#pop" String="///[mig]{0,3}" endRegion="Multiline Regex"/>- </context>- <!-- Class names. -->- <context name="Class" attribute="Normal" lineEndContext="#stay">- <DetectSpaces/>- <RegExpr attribute="Class" context="#pop" String="[@$:.\w\[\]]+"/>- </context>- <!-- Comments. -->- <context name="Comment" attribute="Comment" lineEndContext="#pop">- <IncludeRules context="##Alerts_indent"/>- </context>- <context name="Multiline Comment" attribute="Comment" lineEndContext="#stay" noIndentationBasedFolding="1">- <StringDetect attribute="Comment" context="#pop" String="###" endRegion="Comment"/>- <IncludeRules context="##Alerts_indent"/>- </context>- <!-- Single-line strings. -->- <context name="String" attribute="String" lineEndContext="#stay">- <HlCStringChar attribute="String" context="#stay"/>- <DetectChar attribute="String" context="#pop" char="'"/>- </context>- <context name="Rich String" attribute="String" lineEndContext="#stay">- <HlCStringChar attribute="String" context="#stay"/>- <Detect2Chars attribute="Embedding" context="Embedding" char="#" char1="{"/>- <DetectChar attribute="String" context="#pop" char="""/>- </context>- <!-- Multi-line strings. -->- <context name="Heredoc" attribute="String" lineEndContext="#stay" noIndentationBasedFolding="1">- <HlCStringChar attribute="String" context="#stay"/>- <StringDetect attribute="String" context="#pop" String="'''" endRegion="Heredoc"/>- </context>- <context name="Rich Heredoc" attribute="String" lineEndContext="#stay" noIndentationBasedFolding="1">- <HlCStringChar attribute="String" context="#stay"/>- <Detect2Chars attribute="Embedding" context="Embedding" char="#" char1="{"/>- <StringDetect attribute="String" context="#pop" String=""""" endRegion="Rich Heredoc"/>- </context>- <!-- Expressions embedded in strings. -->- <context name="Embedding" attribute="Normal" lineEndContext="#stay">- <DetectChar attribute="Embedding" context="#pop" char="}"/>- </context>- <!-- Embedded Javascript. -->- <context name="Javascript" attribute="Javascript" lineEndContext="#stay" noIndentationBasedFolding="1">- <DetectChar attribute="Javascript" context="#pop" char="`" endRegion="Javascript"/>- <!-- NOTE: This hides errors where a backtick is embedded in a JS string. -->- <IncludeRules context="##JavaScript" includeAttrib="true"/>- </context>- </contexts>- <!-- Style mappings. -->- <itemDatas>- <itemData name="Normal" defStyleNum="dsNormal" spellChecking="false"/>- <itemData name="Identifier" defStyleNum="dsNormal" spellChecking="false"/>- <itemData name="Keyword" defStyleNum="dsKeyword" spellChecking="false"/>- <itemData name="Function" defStyleNum="dsFunction" spellChecking="false"/>- <itemData name="Decimal" defStyleNum="dsDecVal" spellChecking="false"/>- <itemData name="Float" defStyleNum="dsFloat" spellChecking="false"/>- <itemData name="Oct" defStyleNum="dsBaseN" spellChecking="false"/>- <itemData name="Hex" defStyleNum="dsBaseN" spellChecking="false"/>- <itemData name="String" defStyleNum="dsString" spellChecking="false"/>- <itemData name="Comment" defStyleNum="dsComment" spellChecking="true"/>- <itemData name="Symbol" defStyleNum="dsKeyword" spellChecking="false"/>- <itemData name="Embedding" defStyleNum="dsChar" spellChecking="false"/>- <itemData name="Accessor" defStyleNum="dsDataType" spellChecking="false"/>- <itemData name="Class" defStyleNum="dsDataType" spellChecking="false" bold="1"/>- <itemData name="Javascript" defStyleNum="dsAlert" spellChecking="false" italic="1"/>- <itemData name="Regex" defStyleNum="dsString" spellChecking="false"/>- <itemData name="Reserved" defStyleNum="dsAlert" spellChecking="false"/>- <itemData name="Value Keywords" defStyleNum="dsOthers" spellChecking="false"/>- <itemData name="Globals" defStyleNum="dsOthers" spellChecking="false"/>- <!-- Context-sensitive globals - not styled by default. -->- <itemData name="Browser Globals" defStyleNum="dsNormal" spellChecking="false"/>- <itemData name="Node.js Globals" defStyleNum="dsNormal" spellChecking="false"/>- </itemDatas>- </highlighting>- <!-- Global settings. -->- <general>- <indentation mode="python"/>- <folding indentationsensitive="1"/>- <comments>- <comment name="singleLine" start="#"/>- <comment name="multiLine" start="###" end="###" region="Comment"/>- </comments>- <keywords casesensitive="1" additionalDeliminator="#'"/>- <emptyLines>- <emptyLine regexpr="(?:\s+|\s*#.*)"/>- </emptyLines>- </general>-</language>
xml/cpp.xml view
@@ -34,6 +34,7 @@ <item> export </item> <item> extern </item> <item> false </item>+ <item> final </item> <item> friend </item> <item> for </item> <item> goto </item>@@ -41,8 +42,10 @@ <item> inline </item> <item> namespace </item> <item> new </item>+ <item> noexcept </item> <item> nullptr </item> <item> operator </item>+ <item> override </item> <item> private </item> <item> protected </item> <item> public </item>
xml/doxygen.xml view
@@ -1,14 +1,14 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE language SYSTEM "language.dtd" [- <!ENTITY wordsep "([][,?;()]|\.$|\.?\s)"> <!-- things that end a TagWord -->+ <!ENTITY wordsep "([][,?;()]|\.$|\.?\s)"> <!-- things that end a TagWord --> ]> <!-- This file is part of KDE's kate project. Copyright 2004 Dominik Haumann (dhdev@gmx.de) Copyright 2007 Matthew Woehlke (mw_triad@users.sourceforge.net)- Copyright 2009 Alex Turbov (I.zaufi@gmail.com)+ Copyright 2009-2012 Alex Turbov (I.zaufi@gmail.com) ********************************************************************** * This library is free software; you can redistribute it and/or *@@ -28,375 +28,215 @@ ********************************************************************** --> -<!-- NOTE: Tags @code and @endcode do not present in keywords due- separate handle rules...- -->--<language name="Doxygen" version="1.32" kateversion="2.4" section="Markup" extensions="*.dox;*.doxygen" mimetype="text/x-doxygen" author="Dominik Haumann (dhdev@gmx.de)" license="LGPL" priority="9">+<language name="Doxygen"+ version="1.33"+ kateversion="2.4"+ section="Markup"+ extensions="*.dox;*.doxygen"+ mimetype="text/x-doxygen"+ author="Dominik Haumann (dhdev@gmx.de)"+ license="LGPL"+ priority="9"> <highlighting>- <!-- note: all tags may begin with a \ or @ char+ <!-- NOTE: all tags may begin with a \ or @ char so if you add/change tags you have to do it twice -->+ <!-- NOTE: Tags @code/@endcode, @dot/@enddot, @vermatim/@endverbatim, @msc/@endmsc, @f[/@f]+ do not present in keywords due separate handle rules...+ --> <list name="TagOnly">- <item> \arg </item>-- <item> \attention </item>- <item> \author </item>- <item> \callgraph </item>- <item> \callergraph </item>-<!-- <item> \code </item> -->-- <item> \details </item>- <item> \dot </item>- <item> \else </item>-<!-- <item> \endcode </item> -->- <item> \endcond </item>-- <item> \enddot </item>- <item> \endhtmlonly </item>- <item> \endif </item>- <item> \endlatexonly </item>- <item> \endlink </item>-- <item> \endmanonly </item>- <item> \endmsc </item>- <item> \endverbatim </item>- <item> \endxmlonly </item>- <item> \f[ </item>-- <item> \f] </item>- <item> \f$ </item>- <item> \hideinitializer </item>- <item> \htmlonly </item>- <item> \interface </item>-- <item> \internal </item>- <item> \invariant </item>- <item> \~ </item>- <item> \@ </item>- <item> \$ </item>-- <item> \\ </item>- <item> \# </item>- <item> \latexonly </item>- <item> \li </item>- <item> \manonly </item>-- <item> \msc </item>- <item> \n </item>- <item> \nosubgrouping </item>- <item> \note </item>- <item> \only </item>-- <item> \post </item>- <item> \pre </item>- <item> \private </item>- <item> \privatesection </item>- <item> \protected </item>-- <item> \protectedsection </item>- <item> \public </item>- <item> \publicsection </item>- <item> \remarks </item>- <item> \return </item>-- <item> \returns </item>-<!-- <item> \sa </item> -->-<!-- <item> \see </item> -->- <item> \showinitializer </item>- <item> \since </item>- <item> \test </item>-- <item> \todo </item>- <item> \verbatim </item>- <item> \warning </item>- <item> \xmlonly </item>-- <item> @arg </item>- <item> @attention </item>- <item> @author </item>- <item> @callgraph </item>- <item> @callergraph </item>--<!-- <item> @code </item> -->- <item> @details </item>- <item> @dot </item>- <item> @else </item>-<!-- <item> @endcode </item> -->- <item> @endcond </item>-- <item> @enddot </item>- <item> @endhtmlonly </item>- <item> @endif </item>- <item> @endlatexonly </item>- <item> @endlink </item>-- <item> @endmanonly </item>- <item> @endmsc </item>- <item> @endverbatim </item>- <item> @endxmlonly </item>- <item> @f[ </item>-- <item> @f] </item>- <item> @f$ </item>- <item> @hideinitializer </item>- <item> @htmlonly </item>- <item> @interface </item>-- <item> @internal </item>- <item> @invariant </item>- <item> @~ </item>- <item> @@ </item>- <item> @$ </item>-- <item> @\ </item>- <item> @# </item>- <item> @latexonly </item>- <item> @li </item>- <item> @manonly </item>-- <item> @msc </item>- <item> @n </item>- <item> @nosubgrouping </item>- <item> @note </item>- <item> @only </item>-- <item> @post </item>- <item> @pre </item>- <item> @pivate </item>- <item> @pivatesection </item>- <item> @protected </item>-- <item> @protectedsection </item>- <item> @public </item>- <item> @publicsection </item>- <item> @remarks </item>- <item> @return </item>-- <item> @returns </item>-<!-- <item> @sa </item> -->-<!-- <item> @see </item> -->- <item> @showinitializer </item>- <item> @since </item>- <item> @test </item>-- <item> @todo </item>- <item> @verbatim </item>- <item> @warning </item>- <item> @xmlonly </item>+ <item> \arg </item> <item> @arg </item>+ <item> \author </item> <item> @author </item>+ <item> \authors </item> <item> @authors </item>+ <item> \brief </item> <item> @brief </item>+ <item> \bug </item> <item> @bug </item>+ <item> \callgraph </item> <item> @callgraph </item>+ <item> \callergraph </item> <item> @callergraph </item>+ <item> \date </item> <item> @date </item>+ <item> \deprecated </item> <item> @deprecated </item>+ <item> \details </item> <item> @details </item>+ <item> \else </item> <item> @else </item>+ <item> \endcond </item> <item> @endcond </item>+ <item> \endhtmlonly </item> <item> @endhtmlonly </item>+ <item> \endif </item> <item> @endif </item>+ <item> \enditernal </item> <item> @enditernal </item>+ <item> \endlatexonly </item> <item> @endlatexonly </item>+ <item> \endlink </item> <item> @endlink </item>+ <item> \endmanonly </item> <item> @endmanonly </item>+ <item> \endrtfonly </item> <item> @endrtfonly </item>+ <item> \endxmlonly </item> <item> @endxmlonly </item>+ <item> \f[ </item> <item> @f[ </item>+ <item> \f] </item> <item> @f] </item>+ <item> \f$ </item> <item> @f$ </item>+ <!-- TODO Add @f{environment}{ and @f} -->+ <item> \hideinitializer </item> <item> @hideinitializer </item>+ <item> \htmlonly </item> <item> @htmlonly </item>+ <!-- TODO @internal is a candidate to be handled separately, cuz may introduce folding region -->+ <item> \internal </item> <item> @internal </item>+ <item> \invariant </item> <item> @invariant </item>+ <item> \latexonly </item> <item> @latexonly </item>+ <item> \li </item> <item> @li </item>+ <item> \manonly </item> <item> @manonly </item>+ <item> \n </item> <item> @n </item>+ <item> \nosubgrouping </item> <item> @nosubgrouping </item>+ <item> \only </item> <item> @only </item>+ <item> \post </item> <item> @post </item>+ <item> \pre </item> <item> @pre </item>+ <item> \private </item> <item> @pivate </item>+ <item> \privatesection </item> <item> @pivatesection </item>+ <item> \protected </item> <item> @protected </item>+ <item> \protectedsection </item> <item> @protectedsection </item>+ <item> \public </item> <item> @public </item>+ <item> \publicsection </item> <item> @publicsection </item>+ <item> \remarks </item> <item> @remarks </item>+ <item> \return </item> <item> @return </item>+ <item> \returns </item> <item> @returns </item>+ <item> \result </item> <item> @result </item>+ <item> \rtfonly </item> <item> @rtfonly </item>+ <item> \sa </item> <item> @sa </item>+ <item> \see </item> <item> @see </item>+ <item> \short </item> <item> @short </item>+ <item> \showinitializer </item> <item> @showinitializer </item>+ <item> \since </item> <item> @since </item>+ <item> \tableofcontents </item> <item> @tableofcontents </item>+ <item> \test </item> <item> @test </item>+ <item> \version </item> <item> @version </item>+ <item> \xmlonly </item> <item> @xmlonly </item>+ <!-- TODO Introduce separate context for @~ ? -->+ <item> \# </item> <item> @# </item>+ <item> \$ </item> <item> @$ </item>+ <item> \% </item> <item> @% </item>+ <item> \& </item> <item> @& </item>+ <item> \> </item> <item> @> </item>+ <item> \< </item> <item> @< </item>+ <item> \" </item> <item> @" </item>+ <item> \:: </item> <item> @:: </item>+ <item> \@ </item> <item> @@ </item>+ <item> \\ </item> <item> @\ </item>+ <item> \~ </item> <item> @~ </item> </list> <list name="TagWord">- <item> \addtogroup </item>- <item> \a </item>- <item> \anchor </item>- <item> \b </item>-- <item> \c </item>- <item> \class </item>- <item> \cond </item>- <item> \copybrief </item>- <item> \copydetails </item>-- <item> \copydoc </item>- <item> \def </item>- <item> \dir </item>- <item> \dontinclude </item>- <item> \dotfile </item>-- <item> \e </item>- <item> \elseif </item>- <item> \em </item>- <item> \enum </item>- <item> \example </item>-- <item> \exception </item>- <item> \exceptions </item>- <item> \extends </item>- <item> \file </item>- <item> \htmlinclude </item>-- <item> \if </item>- <item> \ifnot </item>- <item> \implements </item>- <item> \include </item>- <item> \includelineno </item>-- <item> \link </item>- <item> \memberof </item>- <item> \namespace </item>- <item> \p </item>- <item> \package </item>-- <item> \property </item>- <item> \protocol </item>- <item> \ref </item>- <item> \relatesalso </item>- <item> \relates </item>-- <item> \retval </item>- <item> \throw </item>- <item> \throws </item>- <item> \verbinclude </item>- <item> \version </item>-- <item> \xrefitem </item>-- <item> @addtogroup </item>- <item> @a </item>- <item> @anchor </item>-- <item> @b </item>- <item> @c </item>- <item> @class </item>- <item> @cond </item>- <item> @copybrief </item>-- <item> @copydetails </item>- <item> @copydoc </item>- <item> @def </item>- <item> @dir </item>- <item> @dontinclude </item>-- <item> @dotfile </item>- <item> @e </item>- <item> @elseif </item>- <item> @em </item>- <item> @enum </item>-- <item> @example </item>- <item> @exception </item>- <item> @exceptions </item>- <item> @extends </item>- <item> @file </item>-- <item> @htmlinclude </item>- <item> @if </item>- <item> @ifnot </item>- <item> @implements </item>- <item> @include </item>-- <item> @includelineno </item>- <item> @link </item>- <item> @memberof </item>- <item> @namespace </item>- <item> @p </item>-- <item> @package </item>- <item> @property </item>- <item> @prtocol </item>- <item> @ref </item>- <item> @relatesalso </item>-- <item> @relates </item>- <item> @retval </item>- <item> @throw </item>- <item> @throws </item>- <item> @verbinclude </item>-- <item> @version </item>- <item> @xrefitem </item>+ <item> \a </item> <item> @a </item>+ <item> \anchor </item> <item> @anchor </item>+ <item> \b </item> <item> @b </item>+ <item> \c </item> <item> @c </item>+ <item> \cond </item> <item> @cond </item>+ <item> \copybrief </item> <item> @copybrief </item>+ <item> \copydetails </item> <item> @copydetails </item>+ <item> \copydoc </item> <item> @copydoc </item>+ <item> \def </item> <item> @def </item>+ <item> \dir </item> <item> @dir </item>+ <item> \dontinclude </item> <item> @dontinclude </item>+ <item> \e </item> <item> @e </item>+ <item> \elseif </item> <item> @elseif </item>+ <item> \em </item> <item> @em </item>+ <item> \enum </item> <item> @enum </item>+ <item> \example </item> <item> @example </item>+ <item> \exception </item> <item> @exception </item>+ <item> \exceptions </item> <item> @exceptions </item>+ <item> \extends </item> <item> @extends </item>+ <item> \file </item> <item> @file </item>+ <item> \htmlinclude </item> <item> @htmlinclude </item>+ <item> \if </item> <item> @if </item>+ <item> \ifnot </item> <item> @ifnot </item>+ <item> \implements </item> <item> @implements </item>+ <item> \include </item> <item> @include </item>+ <item> \includelineno </item> <item> @includelineno </item>+ <item> \link </item> <item> @link </item>+ <item> \memberof </item> <item> @memberof </item>+ <item> \namespace </item> <item> @namespace </item>+ <item> \p </item> <item> @p </item>+ <item> \package </item> <item> @package </item>+ <item> \property </item> <item> @property </item>+ <item> \relatedalso </item> <item> @relatedalso </item>+ <item> \relatesalso </item> <item> @relatesalso </item>+ <item> \related </item> <item> @related </item>+ <item> \relates </item> <item> @relates </item>+ <item> \retval </item> <item> @retval </item>+ <item> \throw </item> <item> @throw </item>+ <item> \throws </item> <item> @throws </item>+ <item> \verbinclude </item> <item> @verbinclude </item>+ <item> \version </item> <item> @version </item>+ <!-- TODO Introduce separate context for @xrefitem? -->+ <item> \xrefitem </item> <item> @xrefitem </item> </list> <list name="TagParam">- <item> \param </item>- <item> \tparam </item>-- <item> @param </item>- <item> @tparam </item>+ <item> \param </item> <item> @param </item>+ <!-- TODO @tparam has no optional direction actually! -->+ <item> \tparam </item> <item> @tparam </item> </list>+ <!-- TODO Better (separate?) highlighting for @image required --> <list name="TagWordWord">- <item> \image </item>-- <item> @image </item>+ <item> \image </item> <item> @image </item> </list>+ <!-- TODO @union, @struct, @protocol, @interface, @class, @category+ actually takes 3 params, 1 mandatory and 2 optional+ -->+ <!-- TODO @headerfile actually takes 2 params, where last one is optional --> <list name="TagWordString">- <item> \category </item>- <item> \defgroup </item>-- <item> \headerfile </item>- <item> \page </item>- <item> \paragraph </item>- <item> \section </item>- <item> \struct </item>-- <item> \subpage </item>- <item> \subsection </item>- <item> \subsubsection </item>- <item> \union </item>- <item> \weakgroup </item>-- <item> @category </item>- <item> @defgroup </item>- <item> @headerfile </item>- <item> @page </item>-- <item> @paragraph </item>- <item> @section </item>- <item> @struct </item>- <item> @subpage </item>- <item> @subsection </item>-- <item> @subsubsection </item>- <item> @union </item>- <item> @weakgroup </item>+ <item> \addtogroup </item> <item> @addtogroup </item>+ <item> \category </item> <item> @category </item>+ <item> \class </item> <item> @class </item>+ <item> \dotfile </item> <item> @dotfile </item>+ <item> \defgroup </item> <item> @defgroup </item>+ <item> \interface </item> <item> @interface </item>+ <item> \headerfile </item> <item> @headerfile </item>+ <item> \mscfile </item> <item> @mscfile </item>+ <item> \page </item> <item> @page </item>+ <item> \paragraph </item> <item> @paragraph </item>+ <item> \protocol </item> <item> @prtocol </item>+ <item> \ref </item> <item> @ref </item>+ <item> \section </item> <item> @section </item>+ <item> \snippet </item> <item> @snippet </item>+ <item> \struct </item> <item> @struct </item>+ <item> \subpage </item> <item> @subpage </item>+ <item> \subsection </item> <item> @subsection </item>+ <item> \subsubsection </item> <item> @subsubsection </item>+ <item> \union </item> <item> @union </item>+ <item> \weakgroup </item> <item> @weakgroup </item> </list> <list name="TagString">- <item> \addindex </item>-- <item> \brief </item>- <item> \bug </item>- <item> \date </item>- <item> \deprecated </item>- <item> \fn </item>-- <item> \ingroup </item>- <item> \line </item>- <item> \mainpage </item>- <item> \name </item>- <item> \overload </item>-- <item> \par </item>- <item> \sa </item>- <item> \see </item>- <item> \short </item>- <item> \skip </item>-- <item> \skipline </item>- <item> \typedef </item>- <item> \until </item>- <item> \var </item>-- <item> @addindex </item>- <item> @brief </item>- <item> @bug </item>- <item> @date </item>- <item> @deprecated </item>-- <item> @fn </item>- <item> @ingroup </item>- <item> @line </item>- <item> @mainpage </item>- <item> @name </item>+ <item> \addindex </item> <item> @addindex </item>+ <item> \copyright </item> <item> @copyright </item>+ <item> \fn </item> <item> @fn </item>+ <item> \ingroup </item> <item> @ingroup </item>+ <item> \line </item> <item> @line </item>+ <item> \mainpage </item> <item> @mainpage </item>+ <item> \name </item> <item> @name </item>+ <item> \overload </item> <item> @overload </item>+ <item> \par </item> <item> @par </item>+ <item> \skip </item> <item> @skip </item>+ <item> \skipline </item> <item> @skipline </item>+ <item> \typedef </item> <item> @typedef </item>+ <item> \until </item> <item> @until </item>+ <item> \var </item> <item> @var </item>+ </list>+ <list name="Note">+ <item> \note </item> <item> @note </item>+ </list>+ <list name="Warning">+ <item> \warning </item> <item> @warning </item>+ </list>+ <list name="Attention">+ <item> \attention </item> <item> @attention </item>+ </list>+ <list name="Todo">+ <item> \todo </item> <item> @todo </item>+ </list> - <item> @overload </item>- <item> @par </item>- <item> @sa </item>- <item> @see </item>- <item> @short </item>+ <contexts>+ <!--+ Different types of recognized command formats:+ (w/ params specified according doxygen manual (http://www.stack.nl/~dimitri/doxygen/commands.html)) - <item> @skip </item>- <item> @skipline </item>- <item> @typedef </item>- <item> @until </item>- <item> @var </item>+ @tag : TagOnly+ @tag <word> : TagWord+ @tag (rest_of_line) : TagString+ @tag {paragraph} : TagOnly+ @tag <word> <word> : TagWordWord+ @tag <word> (rest_of_line) : TagWordString - </list>- <contexts>- <!-- different formats:- @tag : TagOnly- @tag rest_of_line : TagString- @tag <word> : TagWord- @tag <word> <word> : TagWordWord- @tag <word> rest_of_line : TagWordString+ TODO Not all commands are handled properly nowadays :( Need few more contexts... --> <context attribute="Normal Text" lineEndContext="#stay" name="Normal"> <RegExpr attribute="Comment" context="LineComment" String="//(!|(/(?=[^/]|$)))<?" />@@ -404,7 +244,6 @@ <RegExpr attribute="Region" context="#stay" String="//\s*@\{\s*$" beginRegion="MemberGroup" /> <RegExpr attribute="Region" context="#stay" String="//\s*@\}\s*$" endRegion="MemberGroup" /> <RegExpr attribute="Region" context="#stay" String="/\*\s*@\{\s*\*/" beginRegion="MemberGroup" />- <RegExpr attribute="Region" context="#stay" String="/\*\s*@\}\s*\*/" endRegion="MemberGroup" /> </context> <context attribute="Comment" lineEndContext="#pop" name="LineComment">@@ -414,17 +253,16 @@ <IncludeRules context="SL_DetectEnv" /> <keyword attribute="Tags" context="#stay" String="TagOnly" /> <keyword attribute="Tags" context="SL_TagWord" String="TagWord" />- <keyword attribute="Tags" context="SL_TagParam" String="TagParam" /> <keyword attribute="Tags" context="SL_TagWordWord" String="TagWordWord" /> <keyword attribute="Tags" context="SL_TagString" String="TagString" /> <keyword attribute="Tags" context="SL_TagWordString" String="TagWordString" />+ <RegExpr attribute="Custom Tags" context="#stay" String="[@\\][^@\\ \t]+" /> <DetectIdentifier /> <StringDetect attribute="HTML Comment" context="SL_htmlcomment" String="<!--" /> <Detect2Chars attribute="Comment" context="#stay" char="<" char1="<" /> <RegExpr attribute="HTML Tag" context="SL_htmltag" String="<\/?[a-zA-Z_:][a-zA-Z0-9._:-]*" /> </context>- <context attribute="Comment" lineEndContext="#stay" name="BlockComment"> <DetectSpaces /> <Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" endRegion="BlockComment" />@@ -434,31 +272,32 @@ <IncludeRules context="SL_DetectEnv" /> <keyword attribute="Tags" context="#stay" String="TagOnly" /> <keyword attribute="Tags" context="ML_TagWord" String="TagWord" />- <keyword attribute="Tags" context="ML_TagParam" String="TagParam" /> <keyword attribute="Tags" context="ML_TagWordWord" String="TagWordWord" /> <keyword attribute="Tags" context="ML_TagString" String="TagString" /> <keyword attribute="Tags" context="ML_TagWordString" String="TagWordString" />+ <RegExpr attribute="Custom Tags" context="#stay" String="[@\\][^@\\ \t]+" /> <DetectIdentifier /> <RegExpr attribute="Tags" context="#stay" String="\\(<|>)" /> <Detect2Chars attribute="Comment" context="#stay" char="<" char1="<" /> <RegExpr attribute="HTML Tag" context="ML_htmltag" String="<\/?[a-zA-Z_:][a-zA-Z0-9._:-]*" /> <StringDetect attribute="HTML Comment" context="ML_htmlcomment" String="<!--" />- </context> ---<!-- NOTE: all contexts beginning with ML_ are for multiline comments- The following contexts contain a Detect2Chars that looks for a */ sequence to end multiline comments. Singleline comments do not have this limitation - that's why all contexts are copy&pasted and the line <Detect2Chars ... */> is removed. <IncludeRules context="acontext"> could be used instead but it would make context switching much more complex and very hard to understand! (But use IncludeRules where the rules don't refer to another SL_*/ML_* context, to help maintainability.)--->+ <!-- NOTE: all contexts beginning with ML_ are for multiline comments+ The following contexts contain a Detect2Chars that looks for a */ sequence+ to end multiline comments. Singleline comments do not have this limitation -+ that's why all contexts are copy&pasted and the line <Detect2Chars ... */> is removed.+ <IncludeRules context="acontext"> could be used instead but it would make context switching+ much more complex and very hard to understand! (But use IncludeRules where the rules don't+ refer to another SL_*/ML_* context, to help maintainability.)+ --> <!-- tag contexts --> <context attribute="Comment" lineEndContext="#pop" name="ML_TagWord"> <Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" lookAhead="true" /> <IncludeRules context="SL_TagWord" /> </context> <context attribute="Comment" lineEndContext="#pop" name="ML_TagParam">- <Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" lookAhead="true" /> <DetectSpaces /> <StringDetect attribute="Tags" context="ML_Tag2ndWord" String="[in]" />@@ -468,7 +307,6 @@ <RegExpr attribute="Word" context="#stay" String="\S" /> </context> <context attribute="Comment" lineEndContext="#pop" name="ML_TagWordWord">- <Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" lookAhead="true" /> <DetectSpaces /> <RegExpr attribute="Word" context="ML_Tag2ndWord" String="\S(?=&wordsep;)" />@@ -478,7 +316,6 @@ <context attribute="Comment" lineEndContext="#pop#pop" name="ML_Tag2ndWord"> <Detect2Chars attribute="Comment" context="#pop#pop" char="*" char1="/" lookAhead="true" /> <IncludeRules context="SL_Tag2ndWord" />- </context> <context attribute="Comment" lineEndContext="#pop" name="ML_TagString"> <DetectSpaces />@@ -488,7 +325,6 @@ <RegExpr attribute="HTML Tag" context="ML_htmltag" String="<\/?[a-zA-Z_:][a-zA-Z0-9._:-]*" /> <RegExpr attribute="Description" context="#stay" String="." /> </context>- <context attribute="Comment" lineEndContext="#pop" name="ML_TagWordString"> <Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" lookAhead="true" /> <IncludeRules context="SL_TagWordString" />@@ -498,7 +334,6 @@ <context name="ML_htmltag" attribute="Identifier" lineEndContext="#stay"> <Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" lookAhead="true" /> <Detect2Chars attribute="HTML Tag" context="#pop" char="/" char1=">" />- <DetectChar attribute="HTML Tag" context="#pop" char=">" /> <RegExpr attribute="Identifier" context="ML_identifiers" String="\s*=\s*" /> </context>@@ -508,7 +343,6 @@ <StringDetect attribute="HTML Comment" context="#pop" String="-->" /> </context> <context name="ML_identifiers" attribute="Identifier" lineEndContext="#stay">- <Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" lookAhead="true" /> <RegExpr attribute="String" context="#pop" String="\s*#?[a-zA-Z0-9]*" /> <DetectChar attribute="Types" context="ML_types1" char="'" />@@ -518,18 +352,16 @@ <Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" lookAhead="true" /> <DetectChar attribute="Types" context="#pop#pop" char="'" /> </context>- <context name="ML_types2" attribute="Types" lineEndContext="#stay"> <Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" lookAhead="true" /> <DetectChar attribute="Types" context="#pop#pop" char=""" /> </context> -<!-- NOTE: all contexts beginning with SL_ are for singleline comments -->+ <!-- NOTE: all contexts beginning with SL_ are for singleline comments --> <!-- tag contexts --> <context attribute="Comment" lineEndContext="#pop" name="SL_TagWord"> <DetectSpaces /> <keyword attribute="Tags" context="#pop" String="TagWord" lookAhead="true" />- <RegExpr attribute="Word" context="#pop" String="\S(?=&wordsep;)" /> <RegExpr attribute="Word" context="#stay" String="\S" /> </context>@@ -539,7 +371,6 @@ <StringDetect attribute="Tags" context="SL_Tag2ndWord" String="[out]" /> <StringDetect attribute="Tags" context="SL_Tag2ndWord" String="[in,out]" /> <RegExpr attribute="Word" context="#pop" String="\S(?=&wordsep;)" />- <RegExpr attribute="Word" context="#stay" String="\S" /> </context> <context attribute="Comment" lineEndContext="#pop" name="SL_TagWordWord">@@ -549,7 +380,6 @@ </context> <!-- TODO for kate 2.x, convert references to "#pop!SL_TagWord" --> <context attribute="Comment" lineEndContext="#pop#pop" name="SL_Tag2ndWord">- <DetectSpaces /> <RegExpr attribute="Word" context="#pop#pop" String="\S(?=&wordsep;)" /> <RegExpr attribute="Word" context="#stay" String="\S" />@@ -559,7 +389,6 @@ <StringDetect attribute="HTML Comment" context="SL_htmlcomment" String="<!--" /> <Detect2Chars attribute="Comment" context="#stay" char="<" char1="<" /> <RegExpr attribute="HTML Tag" context="SL_htmltag" String="<\/?[a-zA-Z_:][a-zA-Z0-9._:-]*" />- <RegExpr attribute="Description" context="#stay" String="." /> </context> <context attribute="Comment" lineEndContext="#pop" name="SL_TagWordString">@@ -569,7 +398,6 @@ </context> <!-- html contexts -->- <context name="SL_htmltag" attribute="Identifier" lineEndContext="#pop"> <Detect2Chars attribute="HTML Tag" context="#pop" char="/" char1=">" /> <DetectChar attribute="HTML Tag" context="#pop" char=">" />@@ -579,7 +407,6 @@ <IncludeRules context="##Alerts" /> <StringDetect attribute="HTML Comment" context="#pop" String="-->" /> </context>- <context name="SL_identifiers" attribute="Identifier" lineEndContext="#pop"> <RegExpr attribute="String" context="#pop" String="\s*#?[a-zA-Z0-9]*" /> <DetectChar attribute="Types" context="SL_types1" char="'" />@@ -589,36 +416,39 @@ <DetectChar attribute="Types" context="#pop#pop" char="'" /> </context> <context name="SL_types2" attribute="Types" lineEndContext="#pop">- <DetectChar attribute="Types" context="#pop#pop" char=""" /> </context> - <context name="SL_DetectEnv" lineEndContext="#pop">- <RegExpr attribute="Tags" context="Code" String="[@\\]code" beginRegion="Code" />- <RegExpr attribute="Tags" context="Verbatim" String="[@\\]verbatim" beginRegion="Verbatim" />+ <context attribute="Comment" name="SL_DetectEnv" lineEndContext="#pop">+ <RegExpr attribute="Tags" context="Code" String="[@\\]code\b" beginRegion="Code" />+ <RegExpr attribute="Tags" context="Verbatim" String="[@\\]verbatim\b" beginRegion="Verbatim" /> <RegExpr attribute="Tags" context="Formula" String="[@\\]f\[" beginRegion="Formula" />- <RegExpr attribute="Tags" context="Msc" String="[@\\]msc" beginRegion="Msc" />- <RegExpr attribute="Tags" context="Dot" String="[@\\]dot" beginRegion="Dot" />-+ <RegExpr attribute="Tags" context="Msc" String="[@\\]msc\b" beginRegion="Msc" />+ <RegExpr attribute="Tags" context="Dot" String="[@\\]dot\b" beginRegion="Dot" />+ <keyword attribute="Note" context="#stay" String="Note" />+ <keyword attribute="Warning" context="#stay" String="Warning" />+ <keyword attribute="Attention" context="#stay" String="Attention" />+ <keyword attribute="Todo" context="#stay" String="Todo" />+ <RegExpr attribute="Entities" context="#stay" String="&[A-Za-z]+;" /> </context> - <context name="SL_DetectComment" lineEndContext="#pop">+ <context attribute="Comment" name="SL_DetectComment" lineEndContext="#pop"> <Detect2Chars attribute="Comment" context="#pop#pop" char="*" char1="/" endRegion="BlockComment" />+ <DetectChar attribute="Comment" context="#stay" char="*" />+ <StringDetect attribute="Comment" context="#stay" String="///" /> </context> <context attribute="Code" lineEndContext="#stay" name="Code">- <IncludeRules context="SL_DetectComment" />- <RegExpr attribute="Tags" context="#pop" String="[@\\]endcode" endRegion="Code" />+ <RegExpr attribute="Tags" context="#pop" String="[@\\]endcode\b" endRegion="Code" /> </context> <context attribute="Verbatim" lineEndContext="#stay" name="Verbatim"> <IncludeRules context="SL_DetectComment" />- <RegExpr attribute="Tags" context="#pop" String="[@\\]endverbatim" endRegion="Verbatim" />+ <RegExpr attribute="Tags" context="#pop" String="[@\\]endverbatim\b" endRegion="Verbatim" /> </context> <context attribute="Formulas" lineEndContext="#stay" name="Formula">- <IncludeRules context="SL_DetectComment" /> <RegExpr attribute="Tags" context="#pop" String="[@\\]f\]" endRegion="Formula" /> <!-- TODO: How to force LaTeX math context here?? -->@@ -627,38 +457,41 @@ <context attribute="Message Sequence Chart" lineEndContext="#stay" name="Msc"> <IncludeRules context="SL_DetectComment" />- <RegExpr attribute="Tags" context="#pop" String="[@\\]endmsc" endRegion="Msc" />-+ <RegExpr attribute="Tags" context="#pop" String="[@\\]endmsc\b" endRegion="Msc" /> </context> <context attribute="Dot Graph" lineEndContext="#stay" name="Dot"> <IncludeRules context="SL_DetectComment" />- <RegExpr attribute="Tags" context="#pop" String="[@\\]enddot" endRegion="Dot" />+ <RegExpr attribute="Tags" context="#pop" String="[@\\]enddot\b" endRegion="Dot" /> </context> </contexts> <itemDatas> <itemData name="Normal Text" defStyleNum="dsNormal" />-- <itemData name="Tags" defStyleNum="dsKeyword" color="#ca60ca" selColor="#ffffff" bold="1" italic="0" />- <itemData name="Word" defStyleNum="dsKeyword" color="#0095ff" selColor="#ffffff" bold="1" italic="0" />- <itemData name="HTML Tag" defStyleNum="dsKeyword" color="#000000" selColor="#ffffff" bold="1" italic="0" />+ <itemData name="Tags" defStyleNum="dsKeyword" color="#ca60ca" bold="1" italic="0" />+ <itemData name="Custom Tags" defStyleNum="dsNormal" color="#458C61" bold="1" italic="0" />+ <itemData name="Word" defStyleNum="dsKeyword" color="#0095ff" bold="1" italic="0" />+ <itemData name="HTML Tag" defStyleNum="dsKeyword" color="#000000" bold="1" italic="0" />+ <itemData name="Entities" defStyleNum="dsOthers" color="#4086C0" bold="1" italic="1" /> <itemData name="Description" defStyleNum="dsString" color="#ff0000" />- <itemData name="Comment" defStyleNum="dsComment" color="#0000ff" selColor="#ffffff" italic="1" />+ <itemData name="Comment" defStyleNum="dsComment" color="#0000ff" italic="1" /> <itemData name="Region" defStyleNum="dsRegionMarker" /> <itemData name="Identifier" defStyleNum="dsOthers" /> <itemData name="HTML Comment" defStyleNum="dsComment" /> <itemData name="Types" defStyleNum="dsDataType" />- <itemData name="Code" defStyleNum="dsComment" /> <itemData name="Dot Graph" defStyleNum="dsComment" color="#00A000" selColor="#ffffff" italic="1" /> <itemData name="Formulas" defStyleNum="dsComment" color="#00A000" selColor="#ffffff" italic="1" /> <itemData name="Message Sequence Chart" defStyleNum="dsComment" color="#00A000" selColor="#ffffff" italic="1" /> <itemData name="Verbatim" defStyleNum="dsComment" />+ <itemData name="Note" defStyleNum="dsKeyword" color="#81ca2d" selColor="#81ca2d" bold="1" italic="0" />+ <itemData name="Warning" defStyleNum="dsKeyword" color="#ca9219" selColor="#ca9219" bold="1" italic="0" />+ <itemData name="Attention" defStyleNum="dsKeyword" color="#e85848" selColor="#e85848" bold="1" italic="0" />+ <itemData name="Todo" defStyleNum="dsKeyword" color="#ca60ca" selColor="#ffffff" bold="1" italic="0" /> </itemDatas> </highlighting> <general> <keywords casesensitive="0" weakDeliminator="\$~" />- </general> </language>+<!-- kate: indent-width 2; -->
xml/fortran.xml view
@@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE language SYSTEM "language.dtd">-<language name="Fortran" version="1.12" kateversion="2.4" section="Sources" extensions="*.f;*.F;*.for;*.FOR;*.f90;*.F90;*.fpp;*.FPP;*.f95;*.F95;" mimetype="text/x-fortran-src" casesensitive="0" author="Franchin Matteo (fnch@libero.it)" license="LGPL">+<language name="Fortran" version="1.13" kateversion="2.4" section="Sources" extensions="*.f;*.F;*.for;*.FOR;*.f90;*.F90;*.fpp;*.FPP;*.f95;*.F95;" mimetype="text/x-fortran-src" casesensitive="0" author="Franchin Matteo (fnch@libero.it)" license="LGPL" priority="9"> <!-- by Franchin Matteo, fnch@libero.it --> <highlighting>
xml/go.xml view
@@ -26,7 +26,7 @@ --> -<language name="Go" version="1.00" kateversion="2.4" section="Sources" indenter="cstyle" extensions="*.go" author="Miquel Sabaté (mikisabate@gmail.com)" license="GPL">+<language name="Go" version="1.01" kateversion="2.4" section="Sources" indenter="cstyle" extensions="*.go" author="Miquel Sabaté (mikisabate@gmail.com)" license="GPL"> <highlighting> <list name="keywords"> <!-- Keywords have been taken from The Go Programming Language Specification -> Keywords section -->@@ -47,7 +47,7 @@ <item>import</item> <item>interface</item> <item>map</item>-<!-- <item>package</item> -->+ <item>package</item> <item>range</item> <item>return</item> <item>select</item>@@ -61,6 +61,7 @@ <item>byte</item> <item>complex64</item> <item>complex128</item>+ <item>error</item> <item>float</item> <item>float32</item> <item>float64</item>@@ -69,6 +70,7 @@ <item>int16</item> <item>int32</item> <item>int64</item>+ <item>rune</item> <item>string</item> <item>uint</item> <item>uint8</item>@@ -77,31 +79,43 @@ <item>uint64</item> </list> <list name="builtin">- <item>cap</item>- <item>len</item>- <item>make</item>- <item>new</item>- <item>panic</item>- <item>recover</item>+ <item> append </item>+ <item> cap </item>+ <item> close </item>+ <item> complex </item>+ <item> copy </item>+ <item> imag </item>+ <item> len </item>+ <item> make </item>+ <item> new </item>+ <item> panic </item>+ <item> print </item>+ <item> println </item>+ <item> real </item>+ <item> recover </item> </list>- <list name="special">+ <list name="predeclared"> <item>false</item> <item>nil</item> <item>true</item>+ <item>iota</item> </list> <contexts> <context name="normal" attribute="Normal Text" lineEndContext="#stay"> <keyword attribute="Keyword" context="#stay" String="keywords" />- <keyword attribute="Special" context="#stay" String="special" />- <keyword attribute="Type" context="#stay" String="types" />- <keyword attribute="Builtin" context="#stay" String="builtin" />- <StringDetect attribute="Package" context="Package" String="package" />+ <keyword attribute="Predeclared Identifier" context="#stay" String="predeclared" />+ <keyword attribute="Data Type" context="#stay" String="types" />+ <keyword attribute="Builtin Function" context="#stay" String="builtin" /> <DetectChar attribute="Symbol" context="#stay" char="{" beginRegion="Brace1" /> <DetectChar attribute="Symbol" context="#stay" char="}" endRegion="Brace1" /> <Detect2Chars attribute="Comment" context="Commentar 1" char="/" char1="/" /> <Detect2Chars attribute="Comment" context="Commentar 2" char="/" char1="*" />+ <HlCOct attribute="Octal" context="#stay"/>+ <HlCHex attribute="Hex" context="#stay"/> <HlCChar attribute="Char" context="#stay" /> <DetectChar attribute="String" context="String" char=""" />+ <DetectChar attribute="Multiline String" context="Multiline String" char="`"/>+ <AnyChar attribute="Symbol" context="#stay" String=":!%&()+,-/.*<=>?[]|~^;"/> </context> <context attribute="Comment" lineEndContext="#pop" name="Commentar 1">@@ -118,26 +132,32 @@ <DetectIdentifier /> </context> - <context attribute="Package" lineEndContext="#pop" name="Package" />- <context attribute="String" lineEndContext="#pop" name="String"> <LineContinue attribute="String" context="#stay" /> <HlCStringChar attribute="String Char" context="#stay" /> <DetectChar attribute="String" context="#pop" char=""" /> </context>++ <context attribute="String" lineEndContext="#stay" name="Multiline String">+ <LineContinue attribute="String" context="#stay"/>+ <HlCStringChar attribute="String Char" context="#stay"/>+ <DetectChar attribute="String" context="#pop" char="`"/>+ </context> </contexts> <itemDatas> <itemData name="Normal Text" defStyleNum="dsNormal" spellChecking="false"/> <itemData name="Keyword" defStyleNum="dsKeyword" spellChecking="false"/>- <itemData name="Special" defStyleNum="dsOthers" spellChecking="false"/>- <itemData name="Type" defStyleNum="dsDataType" spellChecking="false"/>- <itemData name="Builtin" defStyleNum="dsOthers" color="#000e52" selColor="#ffffff" spellChecking="false" />+ <itemData name="Predeclared Identifier" defStyleNum="dsOthers" spellChecking="false" />+ <itemData name="Builtin Function" defStyleNum="dsFunction" spellChecking="false" />+ <itemData name="Data Type" defStyleNum="dsDataType" spellChecking="false"/> <itemData name="String Char" defStyleNum="dsChar" /> <itemData name="String" defStyleNum="dsString" /> <itemData name="Comment" defStyleNum="dsComment" />+ <itemData name="Octal" defStyleNum="dsBaseN" spellChecking="false"/>+ <itemData name="Hex" defStyleNum="dsBaseN" spellChecking="false"/> <itemData name="Char" defStyleNum="dsChar" spellChecking="false"/>- <itemData name="Package" defStyleNum="dsNormal" color="#000080" selColor="#ffffff" spellChecking="false" /> <itemData name="Symbol" defStyleNum="dsNormal" spellChecking="false"/>+ <itemData name="Error" defStyleNum="dsError" spellChecking="false"/> </itemDatas> </highlighting> <general>@@ -145,6 +165,6 @@ <comment name="singleLine" start="//" /> <comment name="multiLine" start="/*" end="*/" region="Comment"/> </comments>- <keywords casesensitive="1"/>+ <keywords casesensitive="1" additionalDeliminator="'"" /> </general> </language>
xml/latex.xml view
@@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE language SYSTEM "language.dtd">-<language name="LaTeX" version="1.47" section="Markup" kateversion="2.3" priority="10" extensions="*.tex;*.ltx;*.dtx;*.sty;*.cls;*.bbx;*.cbx;*.lbx;" mimetype="text/x-tex" casesensitive="1" author="Jeroen Wijnhout (Jeroen.Wijnhout@kdemail.net)+Holger Danielsson (holger.danielsson@versanet.de)+Michel Ludwig (michel.ludwig@kdemail.net)+Thomas Braun (thomas.braun@virtuell-zuhause.de)" license="LGPL" >+<language name="LaTeX" version="1.48" section="Markup" kateversion="2.3" priority="10" extensions="*.tex;*.ltx;*.dtx;*.sty;*.cls;*.bbx;*.cbx;*.lbx;" mimetype="text/x-tex" casesensitive="1" author="Jeroen Wijnhout (Jeroen.Wijnhout@kdemail.net)+Holger Danielsson (holger.danielsson@versanet.de)+Michel Ludwig (michel.ludwig@kdemail.net)+Thomas Braun (thomas.braun@virtuell-zuhause.de)" license="LGPL" > <highlighting> <contexts> <!-- Normal text -->@@ -68,7 +68,7 @@ <context name="SectioningMathContrSeq" attribute="Structure Keyword Mathmode" lineEndContext="#pop"> <DetectChar char="×" attribute="Bullet" context="#stay"/> <RegExpr String="[a-zA-Z]+\*?" attribute="Structure Keyword Mathmode" context="#pop"/>- <RegExpr String="[^a-zA-Z]" attribute="Structure Keyword Mathmode" context="#pop" /> + <RegExpr String="[^a-zA-Z]" attribute="Structure Keyword Mathmode" context="#pop" /> </context> <!-- LaTeX Footnote commands -->@@ -339,11 +339,11 @@ <RegExpr String="\\end(?=\s*\{(tabularx|tabular|supertabular|mpsupertabular|xtabular|mpxtabular|longtable)\*?\})" attribute="Structure" context="TabFindEnd"/> <IncludeRules context="Normal Text" /> </context>- + <context name="Column Separator" attribute="Column Separator" lineEndContext="#stay"> <DetectChar char="{" attribute="Column Separator" context="Column Separator"/> <DetectChar char="}" attribute="Column Separator" context="#pop"/>- <RegExpr String="." attribute="Column Separator" context="#stay"/> + <RegExpr String="." attribute="Column Separator" context="#stay"/> <!-- the last regexp is very stupid. Suggestions are welcome! Fallthrough did not help--> </context> @@ -405,7 +405,7 @@ <context name="MathContrSeq" attribute="Keyword Mathmode" lineEndContext="#pop"> <DetectChar char="×" attribute="Bullet" context="#stay"/> <RegExpr String="[a-zA-Z]+\*?" attribute="Keyword Mathmode" context="#pop"/>- <RegExpr String="[^a-zA-Z]" attribute="Keyword Mathmode" context="#pop" /> + <RegExpr String="[^a-zA-Z]" attribute="Keyword Mathmode" context="#pop" /> </context> <!-- text in mathmode -->@@ -414,7 +414,7 @@ </context> <context name="MathModeTextParameterStart" attribute="Normal Text" lineEndContext="#stay" >- <RegExpr String="\\." attribute="Normal Text" context="#stay"/> + <RegExpr String="\\." attribute="Normal Text" context="#stay"/> <DetectChar char="×" attribute="Bullet" context="#stay"/> <RegExpr String="\$.*\$" minimal="true" attribute="Math" context="#stay"/> <DetectChar char="{" attribute="Normal Text" context="MathModeTextParameter"/>@@ -423,7 +423,7 @@ </context> <context name="MathModeTextParameter" attribute="Normal Text" lineEndContext="#stay" >- <RegExpr String="\\." attribute="Normal Text" context="#stay"/> + <RegExpr String="\\." attribute="Normal Text" context="#stay"/> <DetectChar char="{" attribute="Normal Text" context="MathModeTextParameter"/> <DetectChar char="}" attribute="Normal Text" context="#pop"/> <DetectChar char="×" attribute="Bullet" context="#stay"/>@@ -588,6 +588,7 @@ <encoding char="ÿ" string="\"{y}" /> <encoding char="ÿ" string="\"y" /> <encoding string="''" ignored="true" />+ <encoding string="\-" ignored="true" /> </encodings> </spellchecking> </language>
xml/prolog.xml view
@@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE language SYSTEM "language.dtd">-<language name="Prolog" version="1.04" kateversion="2.1" section="Sources" extensions="*.prolog" mimetype="text/x-prolog">+<language name="Prolog" version="1.05" kateversion="2.1" section="Sources" extensions="*.prolog" mimetype="text/x-prolog"> <highlighting> <list name="keywordl"> <item> abstract </item>@@ -195,9 +195,11 @@ </context> <context name="comment" attribute="Comment" lineEndContext="#pop" /> <context name="string" attribute="String" lineEndContext="#stay" >+ <HlCStringChar attribute="String" context="#stay" /> <DetectChar attribute="String" context="#pop" char=""" /> </context> <context name="string2" attribute="String" lineEndContext="#stay">+ <HlCChar attribute="String" context="#stay" /> <DetectChar attribute="String" context="#pop" char="'" /> </context> <context name="comment region" attribute="Comment" lineEndContext="#stay">
xml/r.xml view
@@ -8,7 +8,7 @@ R : http://www.r-project.org/ RKWard : http://rkward.sourceforge.net/ -->-<language version="2.04" kateversion="2.5" name="R Script" section="Scripts" extensions="*.R;*.r;*.S;*.s;*.q" mimetype="" license="GPL">+<language version="2.07" kateversion="2.5" name="R Script" section="Scripts" extensions="*.R;*.r;*.S;*.s;*.q" mimetype="" license="GPL"> <highlighting> <list name="controls">@@ -77,6 +77,15 @@ <HlCStringChar attribute="String Char" context="#stay"/> </context> + <context attribute="Normal Text" lineEndContext="#stay" name="operator_rhs" fallthrough="true" fallthroughContext="#pop">+ <!-- While there is nothing of interest, stay in the context -->+ <StringDetect attribute="Headline" context="Headline" String="##"/>+ <DetectChar attribute="Comment" context="Comment" char="#"/>+ <DetectChar attribute="String" context="#stay" char=" "/>+ <!-- Operators other than +, -, and ! directly after another operator are an error. -->+ <RegExpr attribute="Error" context="#stay" String="(\*|/|<|>|\!=|=|\||&|:|\^|@|\$|~)"/>+ </context>+ <context attribute="Headline" lineEndContext="#pop" name="Headline"/> <context attribute="Comment" lineEndContext="#pop" name="Comment"/> @@ -95,21 +104,12 @@ <StringDetect attribute="Headline" context="Headline" String="##"/> <DetectChar attribute="Comment" context="Comment" char="#"/> - <!-- The following three lines look worse than they are: If there are any other operators directly before or after -> and <-, this is a syntax error (expections: ->> and <<-) -->- <RegExpr attribute="Error" context="#stay" String="([\+\-\*/\^\:\$~!&\|=>@^])([<]{1,2}\-|\-[>]{1,2})"/>- <RegExpr attribute="Error" context="#stay" String="([<]{1,2}\-|\-[>]{1,2})([\+\-\*/\^\:\$~!&\|=<@])"/>- <RegExpr attribute="Error" context="#stay" String="([<]{3}|[>]{3})"/>- <RegExpr attribute="Assign" context="#stay" String="[<]{1,2}\-"/>- <RegExpr attribute="Assign" context="#stay" String="\-[>]{1,2}"/>- <!-- Much like above: Most other operators are forbidden around = -->- <RegExpr attribute="Error" context="#stay" String="([\+\-\*/\^\:\$~&\|@^])="/>- <RegExpr attribute="Error" context="#stay" String="=([\+\-\*/\^\:\$~!<>&\|@^])"/>- <RegExpr attribute="Assign" context="#stay" String="=(?!=)"/>-- <!-- These operators are fine as long as they're followed by something else or end of line. Error otherwise -->- <RegExpr attribute="Operator" context="#stay" String="(\+|\-|\*|/|<=|>=|={1,2}|\!=|\|{1,2}|&{1,2}|:{1,3}|\^|@|\$|~)((?!(\+|\-|\*|/|<=|>=|=|\!=|\||&|:|\^|@|\$|~))|$)"/>- <RegExpr attribute="Error" context="#stay" String="(\+|\-|\*|/|<=|>=|={1,2}|\!=|\|{1,2}|&{1,2}|:{1,3}|\^|@|\$|~){2,}"/> - <RegExpr attribute="Operator" context="#stay" String="%[^%]*%"/>+ <!-- For (assignment) operators, enter a new context operator_rhs to check what follows (generally, that should not be another op) -->+ <RegExpr attribute="Assign" context="operator_rhs" String="[<]{1,2}\-"/>+ <RegExpr attribute="Assign" context="operator_rhs" String="\-[>]{1,2}"/>+ <RegExpr attribute="Assign" context="operator_rhs" String="=(?!=)"/>+ <RegExpr attribute="Operator" context="operator_rhs" String="(\+|\-|\*{1,2}|/|<=?|>=?|={1,2}|\!=?|\|{1,2}|&{1,2}|:{1,3}|\^|@|\$|~)"/>+ <RegExpr attribute="Operator" context="operator_rhs" String="%[^%]*%"/> <DetectChar attribute="Symbol" context="ctx0" char="{" beginRegion="Brace1" />
xml/ruby.xml view
@@ -31,7 +31,7 @@ <!-- Hold the "language" opening tag on a single line, as mentioned in "language.dtd". --> <language name="Ruby" section="Scripts"- version="1.24" kateversion="2.4"+ version="1.25" kateversion="2.4" extensions="*.rb;*.rjs;*.rxml;*.xml.erb;*.js.erb;*.rake;Rakefile;Gemfile;*.gemspec" mimetype="application/x-ruby" style="ruby" indenter="ruby"@@ -233,7 +233,7 @@ <RegExpr attribute="Global Variable" String="\$[a-zA-Z_0-9]+" context="check_div_1"/> <RegExpr attribute="Global Variable" String="\$\-[a-zA-z_]\b" context="check_div_1"/> <!-- special-character globals -->- <RegExpr attribute="Default globals" String="\$[\d_*`\!:?'/\\\-\&"]" context="check_div_1"/>+ <RegExpr attribute="Default globals" String="\$[\d_*`+@;,.~=\!\$:?'/\\\-\&"><]" context="check_div_1"/> <RegExpr attribute="Global Constant" String="\b[_A-Z]+[A-Z_0-9]+\b" context="check_div_2"/> <!-- Generally a module or class name like "File", "MyModule_1", .. --> <RegExpr attribute="Constant" String="\b[A-Z]+_*([0-9]|[a-z])[_a-zA-Z0-9]*\b" context="check_div_2"/>
xml/tcl.xml view
@@ -8,6 +8,8 @@ Updated by Pawel Salawa (boogie at scripts dot one dot pl) Revision history:+ 1.11:+ - added new commands of Tcl/tk 8.5, released in 2007 1.10: - Fixed problem with single ':' character after variable name (it's no longer variable, because only double-colon is namespace delimiter and can be part of variable name).@@ -26,7 +28,7 @@ - Fixed detection of varaibles with names containing serval namespace delimiters (::) --> -<language name="Tcl/Tk" version="1.10" kateversion="2.4" section="Scripts" extensions="*.tcl;*.tk" mimetype="text/x-tcl">+<language name="Tcl/Tk" version="1.11" kateversion="2.4" section="Scripts" extensions="*.tcl;*.tk" mimetype="text/x-tcl"> <highlighting> <list name="keywords"> <item> after </item>@@ -36,9 +38,13 @@ <item> argc </item> <item> array </item> <item> auto_execk </item>+ <item> auto_execok </item>+ <item> auto_import </item> <item> auto_load </item> <item> auto_mkindex </item>+ <item> auto_mkindex_old </item> <item> auto_path </item>+ <item> auto_qualify </item> <item> auto_reset </item> <item> beep </item> <item> bell </item>@@ -52,15 +58,18 @@ <item> case </item> <item> catch </item> <item> cd </item>+ <item> chan </item> <item> checkbutton </item> <item> clipboard </item> <item> clock </item> <item> close </item>+ <item> combobox </item> <item> concat </item> <item> console </item> <item> continue </item> <item> dde </item> <item> destroy </item>+ <item> dict </item> <item> else </item> <item> elseif </item> <item> encoding </item>@@ -100,7 +109,9 @@ <item> interp </item> <item> join </item> <item> label </item>+ <item> labelframe </item> <item> lappend </item>+ <item> lassign </item> <item> lindex </item> <item> linsert </item> <item> list </item>@@ -109,23 +120,30 @@ <item> load </item> <item> lower </item> <item> lrange </item>+ <item> lremove </item>+ <item> lrepeat </item> <item> lreplace </item>+ <item> lreverse </item> <item> lsearch </item>+ <item> lset </item> <item> lsort </item> <item> menu </item> <item> menubutton </item> <item> message </item> <item> namespace </item>+ <item> notebook </item> <item> open </item> <item> option </item> <item> OptProc </item> <item> pack </item> <item> package </item>+ <item> panedwindow </item> <item> parray </item> <item> pid </item> <item> place </item>- <item> pkg_mkindex </item>+ <item> pkg_mkIndex </item> <item> proc </item>+ <item> progressbar </item> <item> puts </item> <item> pwd </item> <item> radiobutton </item>@@ -143,11 +161,15 @@ <item> seek </item> <item> selection </item> <item> send </item>+ <item> separator </item> <item> set </item>+ <item> sizegrip </item> <item> socket </item> <item> source </item>+ <item> spinbox </item> <item> split </item> <item> string </item>+ <item> style </item> <item> subst </item> <item> switch </item> <item> tclLog </item>@@ -180,15 +202,22 @@ <item> tk_getOpenFile </item> <item> tk_getSaveFile </item> <item> tk_library </item>+ <item> tk_menuSetFocus </item> <item> tk_messageBox </item> <item> tk_optionMenu </item> <item> tk_patchLevel </item> <item> tk_popup </item> <item> tk_strictMotif </item>+ <item> tk_textCopy </item>+ <item> tk_textCut </item>+ <item> tk_textPaste </item> <item> tk_version </item> <item> toplevel </item> <item> trace </item>+ <item> traverseTo </item>+ <item> treeview </item> <item> unknown </item>+ <item> unload </item> <item> unset </item> <item> update </item> <item> uplevel </item>