190116.1 · ebec0a5f66b4e5e9286a8b1264ede511727a55e6
added categories to langdefs
reading declarations
@@ -6,11 +6,17 @@ :toc: left :toclevels: 1 ++== highlight 3.49++xx.xx.2019+ - fixed more problems with syntax test indicators reporting wrong states (https://gitlab.com/saalen/highlight/issues/102) - added support for TOML - improved Perl highlighting-+ - added Categories field to all config files+ == highlight 3.48 14.12.2018
@@ -1,6 +1,6 @@ = HIGHLIGHT MANUAL André Simon-v3.45, September 2018+v3.49, January 2019 :lang: en :toc: left :toc-title: Contents@@ -576,6 +576,8 @@ NestedSections = {Lang, Delimiter= {} } Description: String, Defines syntax description +Categories: Table, List of categories (config, source, script, etc)+ Digits: String, Regular expression which defines digits (optional) Identifiers: String, Regular expression which defines identifiers@@ -658,6 +660,8 @@ See {README_PLUGINS} for more available functions. -------------------------------------------------------------------------------- Description="C and C++" +Categories = {"source"}+ Keywords={ { Id=1, List={"goto", "break", "return", "continue", "asm", "case", "default",@@ -735,7 +739,9 @@ Underline:: Boolean, true if font should be underlined (optional) ==== Theme elements ................................................................................-Description: String, Defines theme description+Description: = String, Defines theme description++Categories = Table, List of categories (dark, light, etc) Default = Attributes (Colour of unspecified text) @@ -776,28 +782,31 @@ AttributesN: Formatting of keyword group N. There should be at least four items .Example [source,lua] ---------------------------------------------------------------------------------Default = { Colour="#000000" }-Canvas = { Colour="#ffffff" }-Number = { Colour="#000000" }-Escape = { Colour="#bd8d8b" }-String = { Colour="#bd8d8b" }-StringPreProc = { Colour="#bd8d8b" }-BlockComment = { Colour="#ac2020", Italic=true }-PreProcessor = { Colour="#000000" }-LineNum = { Colour="#555555" }-Operator = { Colour="#000000" }-LineComment = BlockComment+Description = "vim autumn"++Categories = {"light"}++Default = { Colour="#404040" }+Canvas = { Colour="#fff4e8" }+Number = { Colour="#00884c" }+Escape = { Colour="#8040f0" }+String = { Colour="#00884c" }+BlockComment = { Colour="#ff5050" }+StringPreProc = String+LineComment = BlockComment+Operator = { Colour="#513d2b" } +LineNum = { Colour="#555555" } +PreProcessor = { Colour="#660000" }+Interpolation = { Colour="#CA6DE1" } Keywords = {- { Colour= "#9c20ee", Bold=true },- { Colour= "#208920" },- { Colour= "#0000ff" },- { Colour= "#000000" },+ { Colour="#80a030" },+ { Colour="#b06c58" },+ { Colour="#30a188" },+ { Colour="#990000" }, } -------------------------------------------------------------------------------- -- === KEYWORD GROUPS You may define custom keyword groups and corresponding highlighting styles.
@@ -1,6 +1,6 @@ = HIGHLIGHT HANDBUCH André Simon-v3.45, September 2018+v3.49, January 2019 :lang: de :toc: left :toc-title: Contents@@ -577,6 +577,8 @@ NestedSections = {Lang, Delimiter= {} } Description: String, Beschreibung der Syntax +Categories: Table, Liste von Kategorien (config, source, script, etc)+ Digits: String, Regulaerer Ausdruck fuer Zahlenliterale (optional) Identifiers: String, Regulaerer Ausdruck fuer Bezeichner (optional)@@ -662,6 +664,8 @@ Weitere Funktionen sind in {README_PLUGINS} beschrieben. -------------------------------------------------------------------------------- Description="C and C++" +Categories = {"source"}+ Keywords={ { Id=1, List={"goto", "break", "return", "continue", "asm", "case", "default",@@ -739,7 +743,9 @@ Underline:: Boolean, True wenn Font unterstrichen sein soll (optional) ==== Theme-Elemente ................................................................................-Description: String, Theme-Beschreibung+Description = String, Theme-Beschreibung++Categories = Table, Liste von Kategorien (dark, light, etc) Default = Attributes (Farbe des nicht hervorgehobenen Texts) @@ -782,24 +788,30 @@ AttributesN: Liste, Formatierung von Schluesselwoertgruppen. Es sollten .Example [source,lua] ---------------------------------------------------------------------------------Default = { Colour="#000000" }-Canvas = { Colour="#ffffff" }-Number = { Colour="#000000" }-Escape = { Colour="#bd8d8b" }-String = { Colour="#bd8d8b" }-StringPreProc = { Colour="#bd8d8b" }-BlockComment = { Colour="#ac2020", Italic=true }-PreProcessor = { Colour="#000000" }-LineNum = { Colour="#555555" }-Operator = { Colour="#000000" }-LineComment = BlockComment+Description = "vim autumn"++Categories = {"light"}++Default = { Colour="#404040" }+Canvas = { Colour="#fff4e8" }+Number = { Colour="#00884c" }+Escape = { Colour="#8040f0" }+String = { Colour="#00884c" }+BlockComment = { Colour="#ff5050" }+StringPreProc = String+LineComment = BlockComment+Operator = { Colour="#513d2b" } +LineNum = { Colour="#555555" } +PreProcessor = { Colour="#660000" }+Interpolation = { Colour="#CA6DE1" } Keywords = {- { Colour= "#9c20ee", Bold=true },- { Colour= "#208920" },- { Colour= "#0000ff" },- { Colour= "#000000" },+ { Colour="#80a030" },+ { Colour="#b06c58" },+ { Colour="#30a188" },+ { Colour="#990000" }, }+ --------------------------------------------------------------------------------
@@ -445,6 +445,9 @@ This example will add reference hyperlinks to Qt keywords: -- first add a description of what the plug-in does Description="Add qtproject.org reference links to HTML, LaTeX or RTF output" +-- define the plugin categories (ie. supported output formats; languages)+Categories = {"c++", "qt" }+ -- the syntaxUpdate function contains code related to syntax recognition function syntaxUpdate(desc)
langDefs/abap4.lang
@@ -1,6 +1,8 @@ Description="ABAP/4" +Categories = {"source"}+ Identifiers=[[ [a-zA-Z_][\w\-]* ]] Keywords={
@@ -1,6 +1,8 @@ Description="ABC" +Categories = {"database"}+ Keywords={ { Id=1, List={
@@ -1,5 +1,7 @@ Description="Advanced Backus-Naur Form" +Categories = {"protocol"}+ Keywords={ { Id=1, Regex=[[^\s*([^=]+)\s*=]],
@@ -1,5 +1,7 @@ Description="ActionScript" +Categories = {"source", "script"}+ Keywords={ { Id=1, List={"class", "extends", "implements", "import", "interface", "new", @@ -30,7 +32,8 @@ Keywords={ "ClipboardFormats", "ClipboardTransferMode", "Color", "ColorMatrixFilter", "ColorPicker", "ColorPickerEvent", "ColorTransform", "ComboBox", "ComboBoxAccImpl", "ComponentEvent", "CompressionAlgorithm", "ContextMenu", - "ContextMenuBuiltInItems", "ContextMenuEvent", "ContextMenuItem", "ConvolutionFilter", "Cubic", "CuePointType", "CustomActions", + "ContextMenuBuiltInItems", "ContextMenuEvent", "ContextMenuItem", + "ConvolutionFilter", "Cubic", "CuePointType", "CustomActions", "CustomEase", "DRMAuthenticateEvent", "DRMErrorEvent", "DRMStatusEvent", "DataChangeEvent", "DataChangeType", "DataEvent", "DataGrid", "DataGridAccImpl", "DataGridCellEditor", "DataGridColumn", "DataGridEvent", "DataGridEventReason", @@ -57,7 +60,8 @@ Keywords={ "InvalidationType", "InvokeEvent", "Iris", "JointStyle", "KeyLocation", "Keyboard", "KeyboardEvent", "Keyframe", "Label", "LabelButton", "LabelButtonAccImpl", "LayoutEvent", "LineScaleMode", "Linear", "List", - "ListAccImpl", "ListData", "ListEvent", "LivePreviewParent", "Loader", "LoaderContext", "LoaderInfo", "LocalConnection", + "ListAccImpl", "ListData", "ListEvent", "LivePreviewParent", "Loader", + "LoaderContext", "LoaderInfo", "LocalConnection", "Locale", "Math", "Matrix", "MatrixTransformer", "MemoryError", "MetadataEvent", "Microphone", "MorphShape", "Motion", "MotionEvent", "Mouse", "MouseEvent", "MovieClip", "NCManager", "NCManagerNative", "Namespace", "NativeApplication", @@ -85,7 +89,8 @@ Keywords={ "SecurityErrorEvent", "SecurityPanel", "SelectableList", "SelectableListAccImpl", "ServiceMonitor", "Shape", "SharedObject", "SharedObjectFlushStatus", "SignatureStatus", "SignerTrustSettings", - "SimpleButton", "SimpleCollectionItem", "SimpleEase", "Sine", "SkinErrorEvent", "Slider", "SliderDirection", "SliderEvent", + "SimpleButton", "SimpleCollectionItem", "SimpleEase", "Sine", "SkinErrorEvent", + "Slider", "SliderDirection", "SliderEvent", "SliderEventClickTarget", "Socket", "SocketMonitor", "Sound", "SoundChannel", "SoundEvent", "SoundLoaderContext", "SoundMixer", "SoundTransform", "Source", "SpreadMethod", "Sprite", "Squeeze", "StackFrame", "StackOverflowError", @@ -98,7 +103,8 @@ Keywords={ "TileListAccImpl", "TileListCollectionItem", "TileListData", "Timer", "TimerEvent", "Transform", "Transition", "TransitionManager", "Tween", "TweenEvent", "Tweenables", "TypeError", "UIComponent", "UIComponentAccImpl", - "UILoader", "UIScrollBar", "URIDereferencer", "URIError", "URLLoader", "URLLoaderDataFormat", "URLMonitor", "URLRequest", "URLRequestDefaults", + "UILoader", "UIScrollBar", "URIDereferencer", "URIError", "URLLoader", + "URLLoaderDataFormat", "URLMonitor", "URLRequest", "URLRequestDefaults", "URLRequestHeader", "URLRequestMethod", "URLStream", "URLVariables", "Updater", "VerifyError", "Video", "VideoAlign", "VideoError", "VideoEvent", "VideoPlayer", "VideoProgressEvent", "VideoScaleMode", "VideoState", "Wipe", "XML", @@ -107,7 +113,6 @@ Keywords={ } } - Strings={ Delimiter=[["|']], }
@@ -1,6 +1,9 @@ Description="ADA95" +Categories = {"source"}++ Keywords={ { Id=1, List={"abort", "else", "new", "return", "abs", "elsif", "not", "reverse",
@@ -1,6 +1,8 @@ Description="Agda" +Categories = {"source"}+ Keywords={ { Id=1, List={"abstract", "case", "concrete", "data", "do", "in", "interface",
@@ -19,6 +19,8 @@ File extensions: "*.alan", "*.i" ------------------------------------------------------------------------------]] Description = "ALAN Interactive Fiction Language" +Categories = {"source"}+ IgnoreCase = true --> Alan is not case-sensitive EnableIndentation = false
@@ -1,6 +1,8 @@ Description="ALGOL 68" +Categories = {"source"}+ Keywords={ { Id=1, List={"mode", "op", "prio", "proc", "flex", "heap", "loc", "long", "ref",
@@ -1,6 +1,8 @@ Description="AMPL" +Categories = {"source"}+ Keywords={ { Id=1, List={"and", "arc", "by", "check", "cross", "close", "diff", "difference",
@@ -1,6 +1,9 @@ Description="AMTrix" +Categories = {"source"}++ Keywords={ { Id=1, List={"argument", "amtrix_logid", "and", "append", "arg_list", "arg_opt",
@@ -1,6 +1,8 @@ Description="AppleScript" +Categories = {"source", "script"}+ Keywords={ { Id=1, List={"and", "as", "at", "beginning", "considering", "contain", "contains",
@@ -1,6 +1,8 @@ Description="Arc" +Categories = {"source"}+ Identifiers=[[ [a-zA-Z_][\w\-\/]* ]] Keywords={
@@ -1,6 +1,8 @@ Description="ARM" +Categories = {"assembler"}+ Keywords={ { Id=1, List={"AND", "and", "EOR", "eor", "SUB", "sub", "RSB", "rsb", "ADD", "add",
@@ -1,6 +1,8 @@ Description="AS/400 CL" +Categories = {"source"}+ Keywords={ { Id=1, List={"addacc", "addaje", "addalracne", "addalrd", "addalrslte", "addaspcpyd",
@@ -1,6 +1,8 @@ Description="ASCEND" +Categories = {"source"}+ Keywords={ { Id=1, List={ "ADD", "AND", "ALIASES", "ARE_ALIKE", "ARE_THE_SAME",
@@ -1,4 +1,6 @@ Description="Active Server Pages"++Categories = {"source", "script"} Keywords={ { Id=1,
@@ -1,6 +1,8 @@ Description="Abstract" +Categories = {"source"}+ Keywords={ { Id=1, List={"addfilename", "alarm", "ansitokey", "ansitooem", "atof", "atoi",
@@ -1,6 +1,8 @@ Description="Generic Assembler" +Categories = {"assembler"}+ Digits=[[ (?:0x|0X|\$)[0-9a-fA-F]+|\d*[\.\_]?\d+(?:[eE][\-\+]\d+)?[bBhHlLuU]* ]] Keywords={
@@ -1,6 +1,8 @@ Description="Applied Type System" +Categories = {"source"}+ Digits=[[ (?:0x|0X|0b|0B)[0-9a-fA-F]+|\d*[\.\_]?\d+(?:[eE][\-\+]\d+)?[lLuUbfdm]* ]] Keywords={
@@ -1,6 +1,8 @@ Description="AutoHotKey" +Categories = {"source", "script"}+ Keywords={ { Id=1, List={"autotrim", "blockinput", "break", "click", "clipwait", "continue",
@@ -1,6 +1,8 @@ Description="AutoIt" +Categories = {"source", "script"}+ Keywords={ { Id=1, List={"continueloop", "dim", "global", "local", "const", "do", "until",
@@ -1,5 +1,7 @@ Description="Avenue" +Categories = {"source"}+ Keywords={ { Id=1, List={"break", "continue", "CR", "each", "end", "exit", "false",
@@ -1,6 +1,8 @@ Description="(G)AWK" +Categories = {"source", "script"}+ Keywords={ { Id=1, List={"begin", "break", "close", "continue", "delete", "do", "else", "end",
@@ -1,6 +1,8 @@ Description="MS DOS Batch" +Categories = {"source", "script"}+ Keywords={ { Id=1, List={"do", "else", "end", "errorlevel", "exist", "exit", "for", "goto", "if", "not",
@@ -1,6 +1,8 @@ Description="BBcode" +Categories = {"markup"}+ Keywords={ { Id=1, Regex=[[ \[\/?\w+|\] ]],
@@ -1,6 +1,8 @@ Description="BCPL" +Categories = {"source"}+ Keywords={ { Id=1, List={"NUMBER", "NAME", "STRINGCONST", "TRUE", "FALSE", "VALOF", "LV", "RV",
@@ -1,6 +1,8 @@ Description="BibTeX" +Categories = {"document"}+ Keywords={ { Id=1, List={"address", "annote", "author", "title", "type", "abstract", "volume",
@@ -1,6 +1,8 @@ Description="Biferno" +Categories = {"source"}+ Keywords={ { Id=1, List={"exit", "stop", "for", "do", "while", "if", "else", "break",
@@ -1,6 +1,8 @@ Description="Bison" +Categories = {"source"}+ Keywords={ { Id=1, List={"error", "YYABORT", "YYACCEPT", "YYBACKUP", "YYERROR",
@@ -1,6 +1,8 @@ Description="Blitz Basic" +Categories = {"source"}+ Keywords={ { Id=1, List={"after", "and", "before", "case", "const", "data", "default",
@@ -1,6 +1,8 @@ Description="BM Script" +Categories = {"source", "script"}+ Keywords={ { Id=1, List={"advance", "aggregate_member", "action", "base_model", "commit",
@@ -1,6 +1,8 @@ Description="Backus-Naur Form" +Categories = {"protocol"}+ Identifiers=[[ [-a-zA-Z_]+|<[-a-zA-Z_]+> ]] Keywords={
@@ -1,6 +1,8 @@ Description="Boo" +Categories = {"source"}+ Keywords={ { Id=1, List={"abstract", "and", "as", "AST", "break", "callable", "cast", "char",
@@ -1,6 +1,8 @@ Description="C and C++" +Categories = {"source"}+ Digits = [[ (?:0x|0X|0b)[0-9a-fA-F']+|\d*[\.]?\d+(?:[eE][\-\+]\d+)?[lLuU]* ]] Keywords={
@@ -1,6 +1,8 @@ Description="Ceylon" +Categories = {"source"}+ Keywords={ { Id=1, List={ "assembly", "module", "package", "import", "alias", "class",
@@ -1,6 +1,8 @@ Description="Charmm" +Categories = {"source"}+ Keywords={ { Id=1, List={"if", "then", "set", "goto", "label", "stream", "increment",
@@ -1,6 +1,8 @@ Description="CHILL" +Categories = {"source"}+ Keywords={ { Id=1, List={"AND", "BEGIN", "CASE", "DIV", "DO", "ELSE", "ELSIF", "END", "ESAC",
@@ -9,6 +9,8 @@ Description="Chapel" +Categories = {"source"}+ Keywords={ { Id=1, List={"as", "align", "atomic", "begin", "break", "by", "class", "cobegin",
@@ -1,6 +1,8 @@ Description="Clean" +Categories = {"source"}+ Keywords={ { Id=1, List={"default", "definition", "derive", "case", "class", "code", "export",
@@ -2,6 +2,8 @@ Description="ClearBasic" +Categories = {"source"}+ Keywords={ { Id=1, List={"and", "as", "byref", "byval", "case", "declare", "dim", "else",
@@ -1,6 +1,8 @@ Description="Clipper" +Categories = {"source"}+ Keywords={ { Id=1, List={"announce", "begin", "break", "case", "declare", "do", "elseif",
@@ -2,6 +2,9 @@ Description="Clojure" +Categories = {"source"}++ Identifiers=[[ [a-zA-Z_][\w\-\/]* ]] Keywords={@@ -36,4 +39,4 @@ Comments={ Operators=[[\(|\)|\[|\]|\{|\}|\,|\:|\&|<|>|\!|\+|\=|\/|\*|\']] ---FIXME no default escchar param: regex(\\\d{3}|\\x[[:xdigit:]]{2}|\\[ntvbrfa\\\?'"])+--FIXME no default escchar param: regex(\\\d{3}|\\x[[:xdigit:]]{2}|\\[ntvbrfa\\\?'"])
@@ -1,6 +1,9 @@ Description="Clips" +Categories = {"source"}++ Identifiers=[[ [a-zA-Z_][\w\-]* ]] Keywords={
@@ -1,6 +1,8 @@ Description="CMake" +Categories = {"config", "script"}+ Keywords={ { Id=1, List={
@@ -1,6 +1,8 @@ Description="COBOL" +Categories = {"source"}+ Identifiers=[[ [a-zA-Z_][\w\-]* ]] Keywords={
langDefs/coffee.lang
@@ -1,6 +1,8 @@ -- a highlight lang definition for coffeescript, by Jess Austin Description = "Coffeescript" +Categories = {"source", "script"}+ Keywords = { { Id = 1,
@@ -1,6 +1,8 @@ Description="ColdFusion MX" +Categories = {"source"}+ Keywords={ { Id=1, List={"3Dcfabort", "cfapplet", "cfapplication", "cfargument", "cfassociate",
@@ -1,6 +1,8 @@ Description="Generic config files" +Categories = {"config"}+ Keywords={ { Id=1, Regex=[[^\s*[\w@]+]]
@@ -2,6 +2,8 @@ Description="Crack" +Categories = {"source"}+ Digits = [[(?:0x|0X)[0-9a-fA-F]+|\d*[\.]?\d+(?:[eE][\-\+]?\d+)?[lLuU]*]] Keywords={
@@ -1,6 +1,9 @@ -- a highlight lang definition for coffeescript's block regexes, by Jess Austin Description = "Coffeescript Block Regex" +Categories = {"source", "script"}++ Keywords = { { -- backslash literals Id = 1,
@@ -1,5 +1,7 @@ Description="C#" +Categories = {"source"}+ Keywords={ { Id=1, @@ -54,4 +56,4 @@ PreProcessor={ Operators=[[\(|\)|\[|\]|\{|\}|\,|\;|\.|\:|\&|<|>|\!|\=|\/|\*|\%|\+|\-|@|\?|\$|\|]] -EnableIndentation=true+EnableIndentation=true
@@ -1,5 +1,7 @@ Description="CSS" +Categories = {"markup"}+ Identifiers=[[ [a-zA-Z_][\w\-]* ]] Digits=[=[ \#[[:xdigit:]]{3,6}|\d*\.?\d+?\w* ]=]
@@ -1,6 +1,8 @@ Description="D" +Categories = {"source"}+ Digits=[[ (?:0x|0X)[0-9a-fA-F]+|\d*[\.\_]?\d+(?:[eE][\-\+]\d+)?[lLuUbfdm]* ]] Keywords={@@ -129,4 +131,4 @@ Comments={ } } -Operators=[[\(|\)|\[|\]|\{|\}|\,|\;|\.|\:|\&|<|>|\!|\=|\/|\*|\%|\+|\-|\~|\$]]+Operators=[[\(|\)|\[|\]|\{|\}|\,|\;|\.|\:|\&|<|>|\!|\=|\/|\*|\%|\+|\-|\~|\$]]
@@ -1,6 +1,8 @@ Description="Dart" +Categories = {"source"}+ Keywords={ { Id=1, List={ "assert", "break", "case", "catch", "class", "const", "continue",
@@ -27,6 +27,8 @@ Keywords lists are left as one-keyword-for-line to simplify reading and editing. ------------------------------------------------------------------------------]] Description="delphi" +Categories = {"source"}+ Digits=[[ (?:0x|0X|\$)[0-9a-fA-F]+|\d*[\.\_]?\d+(?:[eE][\-\+]\d+)?[lLuUbfdm]* ]] Keywords={
@@ -1,6 +1,8 @@ Description="Diff" +Categories = {"text"}+ Digits=[[ ^[\d,]*[ac]\d* ]] Keywords={
langDefs/docker.lang
@@ -1,5 +1,7 @@ Description="Dockerfile" +Categories = {"config"}+ Keywords={ { Id=1, List={ "from", "run", "cmd", "label", "maintainer", "expose", "env", "add", "copy", "entrypoint", "volume", "user", "workdir", "arg", "onbuild", "stopsignal", "healthcheck", "shell" }
@@ -1,6 +1,8 @@ Description="Device Tree Source" +Categories = {"config"}+ Keywords={ { Id=1, Regex=[[([\w-]+(@.+)?)\s*\{]],
@@ -1,7 +1,8 @@ - Description="Dylan" +Categories = {"source"}+ Keywords={ { Id=1, List={"interface", "library", "macro", "method", "class", "function",
@@ -1,6 +1,8 @@ Description="Extended Backus-Naur Form" +Categories = {"protocol"}+ Keywords={ { Id=1, Regex=[[^\s*([^=]+)\s*=]],
@@ -31,6 +31,8 @@ --]] Description="EBNF2" +Categories = {"protocol"}+ IgnoreCase=false EnableIndentation=false ---------------------------------------------------------------------------------
@@ -1,6 +1,8 @@ Description="Eiffel" +Categories = {"source"}+ Keywords={ { Id=1, List={"agent", "alias", "all", "and", "as", "assign", "check", "class",
@@ -1,6 +1,8 @@ Description="Elixir" +Categories = {"source"}+ Digits = [[ (?:0x|0X|0b)[0-9a-fA-F']+|\d*[\.]?\d+(?:[eE][\-\+]\d+)?[lLuU]* ]] Keywords={
@@ -1,5 +1,7 @@ Description="E-Mail treated as Markup" +Categories = {"protocol"}+ Keywords={ { Id=1, Regex=[[^>\s?>\s?>\s?>.+ ]]
@@ -1,6 +1,8 @@ Description="ERB Templates" +Categories = {"template"}+ Keywords={ { Id=1, Regex=[[ <\%[\=#]?(?!#) ]],
@@ -1,6 +1,9 @@ Description="Erlang" +Categories = {"source"}++ Keywords={ { Id=1, List={"after", "begin", "case", "catch", "cond", "end", "fun", "if", "let", "of", "query", "receive", "when"},
@@ -1,6 +1,9 @@ Description="Euphoria" +Categories = {"source"}++ Keywords={ { Id=1, List={"and", "by", "constant", "do", "else", "elsif", "end", "exit", "for",
@@ -1,5 +1,7 @@ Description="Excel Formulas" +Categories = {"database"}+ Keywords={ { Id = 1, List = {"abs", "accrint", "accrintm", "acos", "acosh", "address", "amordegrc", "amorlincand", "areas", "asc", "asin", "asinh", "atan", "atan2", "atanh", "avedev", "average", "averagea", "bahttext", "besseli", "besselj", "besselk", "bessely", "betadist", "betainv", "bin2dec", "bin2hex", "bin2oct", "binomdist", "ceiling", "cell", "char", "chidist", "chiinv", "chitest", "choose", "clean", "code", "column", "columns", "combin", "complex", "concatenate", "confidence", "convert", "correl", "cos", "cosh", "count", "counta", "countblank", "countif", "coupdaybs", "coupdays", "coupdaysnc", "coupncd", "coupnum", "couppcd", "covar", "critbinom", "cumipmt", "cumprinc", "date", "datedif", "datevalue", "daverage", "day", "days360", "db", "dcount", "dcounta", "ddb", "dec2bin", "dec2hex", "dec2oct", "degrees", "delta", "devsq", "dget", "disc", "dmax", "dmin", "dollar", "dollarde", "dollarfr", "dproduct", "dstdev", "dstdevp", "dsum", "duration", "dvar", "dvarp", "edate", "effect", "eomonth", "erf", "erfc", "error.type", "euroconvert", "even", "exact", "exp", "expondist", "fact", "factdouble", "false", "fdist", "find", "findb", "finv", "fisher", "fisherinv", "fixed", "floor", "forecast", "frequency", "ftest", "fv", "fvschedule", "gammadist", "gammainv", "gammaln", "gcd", "geomean", "gestep", "getpivotdata", "growth", "harmean", "hex2bin", "hex2dec", "hex2oct", "hlookup", "hour", "hyperlink", "hypgeomdist", "if", "imabs", "imaginary", "imargument", "imconjugate", "imcos", "imdiv", "imexp", "imln", "imlog10", "imlog2", "impower", "improduct", "imreal", "imsin", "imsqrt", "imsub", "imsum", "index", "indirect", "info", "int", "intercept", "intrate", "ipmt", "irr", "isblank", "iserr", "iserror", "iseven", "islogical", "isna", "isnontext", "isnumber", "isodd", "ispmt", "isref", "istext", "kurt", "large", "lcm", "left", "leftb", "len", "lenb", "linest", "ln", "log", "log10", "logest", "loginv", "lognormdist", "lookup", "lower", "match", "max", "maxa", "mdeterm", "mduration", "median", "mid", "midb", "min", "mina", "minute", "minverse", "mirr", "mmult", "mod", "mode", "month", "mround", "multinomial", "n", "na", "negbinomdist", "networkdays", "nominal", "normdist", "norminv", "normsdist", "normsinv", "not", "now", "nper", "npv", "oct2bin", "oct2dec", "oct2hex", "odd", "oddfprice", "oddfyield", "oddlprice", "oddlyield", "offset", "or", "pearson", "percentile", "percentrank", "permut", "phonetic", "pi", "pmt", "poisson", "power", "ppmt", "price", "pricedisc", "pricemat", "prob", "product", "proper", "pv", "quartile", "quartile.exc", "quartile.inc", "quotient", "radians", "rand", "randbetween", "rank", "rate", "received", "replace,", "rept", "right,", "roman", "round", "rounddown", "roundup", "row", "rows", "rsq", "rtd", "search,", "searchb", "second", "seriessum", "sign", "sin", "sinh", "skew", "sln", "slope", "small", "sql.request", "sqrt", "sqrtpi", "standardize", "stdev", "stdeva", "stdevp", "stdevpa", "steyx", "substitute", "subtotal", "sum", "sumif", "sumifs", "sumproduct", "sumsq", "sumx2my2", "sumx2py2", "sumxmy2", "syd", "t", "tan", "tanh", "tbilleq", "tbillprice", "tbillyield", "tdist", "text", "time", "timevalue", "tinv", "today", "transpose", "trend", "trim", "trimmean", "true", "trunc", "ttest", "type", "upper", "value", "var", "vara", "varp", "varpa", "vdb", "vlookup", "weekday", "weeknum", "weibull", "weibull.dist", "workday", "workday.intl", "xirr", "xnpv", "year", "yearfrac", "yield", "yielddisc", "yieldmat", "ztest"}
@@ -1,6 +1,8 @@ Description="Express" +Categories = {"source"}+ Keywords={ { Id=1, List={"abs", "aggindex", "aggmap", "aggmapinfo", "aggregate", "aggregate",
@@ -2,6 +2,8 @@ Description="FAME" +Categories = {"source"}+ Keywords={ { Id=1, List={"abort", "accelerator", "access", "alias", "almon", "append", "area",
@@ -74,6 +74,8 @@ HIGHLIGHT -- (C) 2002, André Simon, licensed under GNU-GPL3: Description="fasm" +Categories = {"assembler"}+ IgnoreCase=true Digits=[[ (?x)@@ -608,4 +610,4 @@ v1.1 (2017/03/14) -- DECIMAL NUMBERS FIX: implemented the (optional) "d" suffix. -- ALL NUMBER TYPES FIX: implemented single quote (') and underscore (_) for splitting long numbers (eg: 1'000'000 or 1_000_000).-]]+]]
@@ -1,6 +1,8 @@ Description="Felix" +Categories = {"source"}+ Keywords={ { Id=1, List={"all", "and", "as", "body", "call", "case", "class", "code", "const",
@@ -1,6 +1,8 @@ Description="Fortran 77" +Categories = {"source"}+ Identifiers=[[ [a-zA-Z_][\w\d\*]* ]] Keywords={
@@ -1,6 +1,8 @@ Description="Fortran 90" +Categories = {"source"}+ Digits=[[ (?:0x|0X)[0-9a-fA-F]+|\d*[\.\_]?\d+(?:[eE][\-\+]\d+)?[lLuUbfdm]* ]] Keywords={
@@ -1,49 +1,51 @@ Description="Frink" +Categories = {"source"}+ Keywords={ { Id=1, List={"if", "then", "else", "for", "to", "step", "next", "use", "while", -"var", "class", "interface", "return", "mod", "div", "conforms", "square", "sq", -"cubic", "cu", "squared", "cube", "is", "", "true", "TRUE", "false", "FALSE", -"", "and", "AND", "or", "OR", "NOT", "not", "nand", "NAND", "nor", "NOR", "xor", -"XOR", "implies", "IMPLIES", "dict", "println", "sin", "cos", "tan", "sec", -"csc", "cot", "arcsin", "arccos", "arcsin", "arccsc", "arcsec", "arccot", -"arctan", "floor", "ceil", "round", "round", "int", "trunc", "inv", "recip", -"sqrt", "log", "ln", "abs", "format", "format", "random", "randomBits", -"bitLength", "modPow", "binary", "ternary", "trinary", "quaternary", "quinary", -"senary", "sexenary", "septenary", "octal", "oct", "octonary", "nonary", -"decimal", "denary", "undenary", "duodecimal", "duodenary", "tridecimal", -"quattuordecimal", "quindecimal", "hexadecimal", "sexadecimal", "hex", -"septendecimal", "octodecimal", "nonadecimal", "vigesimal", "char", "uppercase", -"uc", "lowercase", "lc", "substr", "substring", "substrLen", "substringLen", "timezone", "timezones", -"now", "deltaT", "subst", "split", "join", "lines", "read", "stripHTML", "url", -"urlHost", "urlProtocol", "select", "sort", "", "newJava", "callJava", -"staticJava", "English", "en", "German", "Deutsch", "de", "Spanish", "Espanol", -"Español", "es", "French", "Francais", "Français", "fr", "Italian", "Italiano", -"it", "Portuguese", "pt", "Korean", "ko", "SimplifiedChinese", "zh", -"TraditionalChinese", "Chinese", "zt", "Russian", "ru", "Japanese", "jp", -"Dutch", "Nederlands", "nl", "FromEnglish", "from_en", "FromGerman", "from_de", -"FromSpanish", "from_es", "FromFrench", "from_fr", "FromItalian", "from_it", -"FromPortuguese", "from_pt", "FromJapanese", "from_ja", "FromKorean", "from_ko", -"FromRussian", "from_ru", "Default FromSimplifiedChinese", "from_zh", -"FromTraditionalChinese", "FromChinese", "from_zt", "FromDutch", "from_nl", -"EnglishToGerman", "en_de", "EnglishToSpanish", "en_es", "EnglishToFrench", -"en_fr", "EnglishToItalian", "en_it", "EnglishToPortuguese", "en_pt", "EnglishToKorean", "en_ko", -"EnglishToJapanese", "en_ja", "EnglishToRussian", "en_ru", -"EnglishToSimplifiedChinese", "en_zh", "EnglishToTraditionalChinese", "en_zt", -"EnglishToDutch", "en_nl", "GermanToEnglish", "Englisch", "de_en", -"GermanToFrench", "franzoesisch", "Franzoesisch", "französisch", "Französisch", -"de_fr", "SpanishToEnglish", "Inglés", "Ingles", "es_en", "SpanishToFrench", -"frances", "Frances", "francés", "Francés", "es_fr", "FrenchToEnglish", -"Anglais", "fr_en", "FrenchToGerman", "Allemand", "allemand", "fr_de", -"FrenchToSpanish", "Espagnol", "espagnol", "fr_es", "FrenchToPortuguese", -"Portugais", "portugais", "fr_pt", "FrenchToItalian", "Italien", "italien", -"fr_it", "ItalianToEnglish", "Inglese", "it_en", "ItalianToFrench", "Francese", -"francese", "it_fr", "PortugueseToEnglish", "Inglês", "pt_en", -"PortugueseToFrench", "francês", "Francês", "pt_fr", "JapaneseToEnglish", -"ja_en", "KoreanToEnglish", "ko_en", "RussianToEnglish", "ru_en", "SimplifiedChineseToEnglish", "zh_en", "TraditionalChineseToEnglish", -"ChineseToEnglish", "zt_en", "DutchToEnglish", "Engels", "nl_en"},+ "var", "class", "interface", "return", "mod", "div", "conforms", "square", "sq", + "cubic", "cu", "squared", "cube", "is", "", "true", "TRUE", "false", "FALSE", + "", "and", "AND", "or", "OR", "NOT", "not", "nand", "NAND", "nor", "NOR", "xor", + "XOR", "implies", "IMPLIES", "dict", "println", "sin", "cos", "tan", "sec", + "csc", "cot", "arcsin", "arccos", "arcsin", "arccsc", "arcsec", "arccot", + "arctan", "floor", "ceil", "round", "round", "int", "trunc", "inv", "recip", + "sqrt", "log", "ln", "abs", "format", "format", "random", "randomBits", + "bitLength", "modPow", "binary", "ternary", "trinary", "quaternary", "quinary", + "senary", "sexenary", "septenary", "octal", "oct", "octonary", "nonary", + "decimal", "denary", "undenary", "duodecimal", "duodenary", "tridecimal", + "quattuordecimal", "quindecimal", "hexadecimal", "sexadecimal", "hex", + "septendecimal", "octodecimal", "nonadecimal", "vigesimal", "char", "uppercase", + "uc", "lowercase", "lc", "substr", "substring", "substrLen", "substringLen", "timezone", "timezones", + "now", "deltaT", "subst", "split", "join", "lines", "read", "stripHTML", "url", + "urlHost", "urlProtocol", "select", "sort", "", "newJava", "callJava", + "staticJava", "English", "en", "German", "Deutsch", "de", "Spanish", "Espanol", + "Español", "es", "French", "Francais", "Français", "fr", "Italian", "Italiano", + "it", "Portuguese", "pt", "Korean", "ko", "SimplifiedChinese", "zh", + "TraditionalChinese", "Chinese", "zt", "Russian", "ru", "Japanese", "jp", + "Dutch", "Nederlands", "nl", "FromEnglish", "from_en", "FromGerman", "from_de", + "FromSpanish", "from_es", "FromFrench", "from_fr", "FromItalian", "from_it", + "FromPortuguese", "from_pt", "FromJapanese", "from_ja", "FromKorean", "from_ko", + "FromRussian", "from_ru", "Default FromSimplifiedChinese", "from_zh", + "FromTraditionalChinese", "FromChinese", "from_zt", "FromDutch", "from_nl", + "EnglishToGerman", "en_de", "EnglishToSpanish", "en_es", "EnglishToFrench", + "en_fr", "EnglishToItalian", "en_it", "EnglishToPortuguese", "en_pt", "EnglishToKorean", "en_ko", + "EnglishToJapanese", "en_ja", "EnglishToRussian", "en_ru", + "EnglishToSimplifiedChinese", "en_zh", "EnglishToTraditionalChinese", "en_zt", + "EnglishToDutch", "en_nl", "GermanToEnglish", "Englisch", "de_en", + "GermanToFrench", "franzoesisch", "Franzoesisch", "französisch", "Französisch", + "de_fr", "SpanishToEnglish", "Inglés", "Ingles", "es_en", "SpanishToFrench", + "frances", "Frances", "francés", "Francés", "es_fr", "FrenchToEnglish", + "Anglais", "fr_en", "FrenchToGerman", "Allemand", "allemand", "fr_de", + "FrenchToSpanish", "Espagnol", "espagnol", "fr_es", "FrenchToPortuguese", + "Portugais", "portugais", "fr_pt", "FrenchToItalian", "Italien", "italien", + "fr_it", "ItalianToEnglish", "Inglese", "it_en", "ItalianToFrench", "Francese", + "francese", "it_fr", "PortugueseToEnglish", "Inglês", "pt_en", + "PortugueseToFrench", "francês", "Francês", "pt_fr", "JapaneseToEnglish", + "ja_en", "KoreanToEnglish", "ko_en", "RussianToEnglish", "ru_en", "SimplifiedChineseToEnglish", "zh_en", "TraditionalChineseToEnglish", + "ChineseToEnglish", "zt_en", "DutchToEnglish", "Engels", "nl_en"}, } }
@@ -1,6 +1,8 @@ Description="F#" +Categories = {"source", "functional"}+ Digits=[[ (?:0x|0X|0b|0B|0o)[0-9a-fA-F]+?\w*|\d*[\.\_]?\d+(?:[eE][\-\+]\d+)?\w* ]] Keywords={
@@ -1,6 +1,9 @@ Description="fstab config file" +Categories = {"config"}++ Keywords={ { Id=1, List= { "ext2", "ext3", "ext4", "ntfs-3g", "proc", "auto", "ntfs", "swap", "btrfs", "none"
@@ -1,6 +1,9 @@ Description="Java FX" +Categories = {"source"}++ Keywords={ { Id=1, List={
@@ -1,6 +1,8 @@ Description="Gambas" +Categories = {"source", "script"}+ Identifiers=[[ [a-zA-Z_]+\$? ]] Keywords={
@@ -3,6 +3,8 @@ Description="gdb" +Categories = {"source", "script"}+ Identifiers=[[ [a-zA-Z_][\w\-]* ]] Keywords={
@@ -32,6 +32,8 @@ Description="GDScript" +Categories = {"source", "script"}+ IgnoreCase=false Keywords={
@@ -1,5 +1,7 @@ Description="Go" +Categories = {"source"}+ Keywords={ { Id=1, List={ "break", "default", "func", "interface", "select", "case", "defer",
@@ -1,6 +1,8 @@ Description="Graphviz" +Categories = {"graphics"}+ Keywords={ { Id=1, List={"digraph", "graph", "node", "edge", "subgraph", "strict"},
@@ -1,6 +1,8 @@ Description="Haskell" +Categories = {"source"}+ Keywords={ -- Type-level keywords { Id=1,
@@ -1,6 +1,8 @@ Description="haXe" +Categories = {"source"}+ Digits=[[ (?:0x|0X)[0-9a-fA-F]+|\d*[\.\_]?\d+(?:[eE][\-\+]?\d+)?[lLuUbfdm]* ]] Keywords={
@@ -2,6 +2,9 @@ Description="Hecl" +Categories = {"source"}++ Keywords={ { Id=1, List={"append", "break", "catch", "continue", "eq", "eval", "filter", "for",
@@ -1,6 +1,8 @@ Description="HTML" +Categories = {"markup"}+ Keywords={ { Id=1, Regex=[[<[!?]?(?!\-\-)\/?[\w\:\-]+>?|[/?]?>]],
@@ -1,6 +1,8 @@ Description="Apache Config" +Categories = {"protocol"}+ Identifiers=[[ [a-zA-Z_][\w\-]* ]] Keywords={
@@ -1,6 +1,8 @@ Description="Icon" +Categories = {"source"}+ Keywords={ { Id=1, List={"by", "case", "", "create", "default", "do", "else", "every", "if", "initial", "next", "of", "repeat", "then", "to", "until", "while", "break",
@@ -2,6 +2,8 @@ Description="IDL" +Categories = {"source"}+ Keywords={ { Id=1, List={"case", "coclass", "", "dispinterface", "enum", "interface", "library", "module", "pipe", "struct", "switch", "typedef", "union"},
@@ -1,6 +1,8 @@ Description="Interactive Data Language" +Categories = {"database"}+ Identifiers=[[ [a-zA-Z_][\w\d\*]* ]] Keywords={
@@ -1,6 +1,9 @@ Description="Lua (for LuaTeX)" +Categories = {"script", "document"}++ Keywords={ { Id=1, List={"and", "break", "do", "else", "elseif", "end", "false", "for", "function",
@@ -1,6 +1,9 @@ Description="Informix" +Categories = {"source"}++ Keywords={ { Id=1, List={"add", "after", "all", "allowing", "and", "any", "arg_val", "array",
@@ -1,6 +1,8 @@ Description="INI" +Categories = {"config"}+ Keywords={ { Id=1, Regex=[[^\s*(\[.+\])]],
@@ -1,6 +1,9 @@ Description="Inno Setup" +Categories = {"config", "script"}++ Digits=[[ (?:0x|0X|\$)[0-9a-fA-F]+|\d*[\.\_]?\d+(?:[eE][\-\+]\d+)?[lLuUbfdm]* ]] Keywords={
@@ -1,6 +1,8 @@ Description="INTERLIS" +Categories = {"source"}+ Keywords={ { Id=1, List={"ANY", "ARCS", "AREA", "BASE", "BLANK", "CODE", "CONTINUE", "CONTOUR",
@@ -1,5 +1,7 @@ Description="IO" +Categories = {"source"}+ Keywords={ { Id=1, List={"activate", "activeCoroCount", "and", "block", "break", "catch",
@@ -1,6 +1,8 @@ Description="Jasmin" +Categories = {"source"}+ Keywords={ { Id=1, List={"catch", "class", "end", "field", "implements", "interface", "limit",
@@ -1,5 +1,7 @@ Description="Java" +Categories = {"source"}+ Keywords={ { Id=1, List={"abstract", "assert", "boolean", "break", "byte", "case", "catch", "char", "class", "const",
langDefs/js.lang
@@ -1,6 +1,8 @@ Description="Javascript" +Categories = {"source", "script"}+ Digits=[[ (?:0x)[0-9a-fA-F]+|(?:0b)[01]+|(?:0o)[0-8]+|\d*[\.]?\d+(?:[eE][\-\+]\d+)?[lLuU]* ]] Keywords={
@@ -3,6 +3,8 @@ Description = "Javascript Regex" +Categories = {"source", "script"}+ Keywords = { { -- backslash literals Id = 1,
@@ -1,5 +1,8 @@ Description="JSON" +Categories = {"config", "protocol"}++ Keywords={ { Id=1, Regex=[[ \{|\} ]],
@@ -1,4 +1,6 @@ Description="JavaServer Pages"++Categories = {"source", "script"} Keywords={ { Id=1,
@@ -4,6 +4,9 @@ dofile(HL_LANG_DIR.."js.lang") Description="JSX" +Categories = {"script", "javascript"}++ table.insert(Keywords, { Id=1, List={ "into", "final", "mixin", "as", "debugger", "log", "assert"},
@@ -1,6 +1,9 @@ Description="Julia" +Categories = {"source"}++ Keywords={ { Id=1, List={
@@ -1,6 +1,8 @@ Description="Kotlin" +Categories = {"source"}+ Keywords={ { Id=1, List={"package", "as", "typealias", "class", "this", "super", "val", "var",
@@ -1,6 +1,9 @@ Description="LDAP" +Categories = {"protocol"}++ Keywords={ { Id=1, List={"binary", "businesscategory", "carlicense", "changetype", "cn",
@@ -1,5 +1,8 @@ Description="LESS" +Categories = {"markup"}++ Identifiers=[[ [a-zA-Z_\-][\w\-]* ]] Digits=[=[ \#[[:xdigit:]]{3,6}|\d*\.?\d+?\w* ]=]@@ -37,4 +40,4 @@ Comments = { } } -Operators=[[\(|\)|\[|\]|\{|\}|\,|\;|\.|\:|\&|<|>|\!|\=|\/|\*|\%|\+|\-|\~|\#]]+Operators=[[\(|\)|\[|\]|\{|\}|\,|\;|\.|\:|\&|<|>|\!|\=|\/|\*|\%|\+|\-|\~|\#]]
@@ -4,6 +4,9 @@ dofile(HL_LANG_DIR.."haskell.lang") Description="Haskell LHS" +Categories = {"source"}++ Comments={ { Block=false, Delimiter= { [[^\s*([^\>].*)]] },
@@ -1,6 +1,9 @@ Description="Lilypond" +Categories = {"source"}++ Identifiers=[[ ([a-z]+)\d* ]] Keywords={
@@ -1,6 +1,9 @@ Description="Limbo" +Categories = {"source"}++ Keywords={ { Id=1, List={ "if", "else", "while", "do", "return", "list", "of",
@@ -1,6 +1,8 @@ Description="Linden Script" +Categories = {"source", "script"}+ Keywords={ { Id=1, List={"for", "do", "while", "if", "else", "jump"},
@@ -1,6 +1,8 @@ Description="Lisp" +Categories = {"source"}+ Identifiers=[[ [a-zA-Z_][\w\-]* ]] Keywords={
@@ -2,6 +2,9 @@ Description="Logtalk" +Categories = {"source"}++ Keywords={ { Id=1, --conditional compilation directives Regex=[[^\s*:-\s((el)?if)(?=[(])]],
@@ -1,6 +1,8 @@ Description="Lotos" +Categories = {"source"}+ Keywords={ { Id=1, List={"accept", "actualizedby", "any", "behavior", "behaviour", "choice",
@@ -1,6 +1,8 @@ Description="Lotus" +Categories = {"source", "database"}+ Identifiers=[[ [a-zA-Z_][\w]*\$? ]] Keywords={
@@ -1,6 +1,8 @@ Description="Lua" +Categories = {"source"}+ Keywords={ { Id=1, List={"and", "break", "do", "else", "elseif", "end", "false", "for",
@@ -1,6 +1,8 @@ Description="Luban" +Categories = {"source"}+ Keywords={ { Id=1, List={"as", "break", "continue", "else", "finish", "for", "foreach",
langDefs/make.lang
@@ -1,6 +1,8 @@ Description="Make" +Categories = {"config", "script"}+ Identifiers=[[ [a-zA-Z_][\w\d\-]* ]] Keywords={@@ -39,4 +41,4 @@ Comments={ }, } -Operators=[[\(|\)|\[|\]|\{|\}|\,|\;|\:|\&|<|>|\!|\=|\/|\*|\%|\+|\-|\$]]+Operators=[[\(|\)|\[|\]|\{|\}|\,|\;|\:|\&|<|>|\!|\=|\/|\*|\%|\+|\-|\$]]
@@ -1,6 +1,8 @@ Description="Maple" +Categories = {"scientific"}+ Keywords={ { Id=1, List={"and", "or", "xor", "union", "intersect", "minus", "mod", "not",
@@ -1,5 +1,7 @@ Description="Matlab" +Categories = {"scientific"}+ Keywords={ { Id=1, List={"assignin", "break", "case", "catch", "cell", "char", "class",
@@ -1,6 +1,8 @@ Description="Maya" +Categories = {"source"}+ Keywords={ { Id=1, List={"float", "int", "matrix", "string", "vector", "false", "no", "off",
langDefs/md.lang
@@ -1,5 +1,7 @@ Description="GitHub Flavored Markdown" +Categories = {"markup"}+ Keywords={ { Id=1, Regex=[[^##?#?#?#?#?.+]],@@ -19,4 +21,4 @@ Strings={ Delimiter=[[```|`]] } -IgnoreCase=false+IgnoreCase=false
@@ -1,6 +1,8 @@ Description="Mercury" +Categories = {"source"}+ Keywords={ { Id=1, List={"is", "and", "or", "func", "impure", "", "", "pred", "", "semipure",
@@ -1,6 +1,9 @@ Description="Miranda" +Categories = {"source"}++ Identifiers=[[ [a-z][a-zA-Z0-9_']* ]] Keywords={
@@ -1,6 +1,9 @@ Description="Modula2" +Categories = {"source"}++ Keywords={ { Id=1, List={"GENERIC", "AND", "ARRAY", "BEGIN", "BY", "CASE", "CONST",
@@ -1,6 +1,9 @@ Description="Modula3" +Categories = {"source"}++ Keywords={ { Id=1, List={"and", "do", "from", "not", "repeat", @@ -45,4 +48,4 @@ Comments={ } } -Operators=[[\(|\)|\[|\]|\{|\}|\,|\;|\:|\&|<|>|\!|\=|\/|\*|\%|\+|\-|\.]]+Operators=[[\(|\)|\[|\]|\{|\}|\,|\;|\:|\&|<|>|\!|\=|\/|\*|\%|\+|\-|\.]]
@@ -1,6 +1,8 @@ Description="Modelica" +Categories = {"scientific"}+ Keywords={ { Id=1, List={"annotation", "assert", "block", "class", "connector", "constant",
@@ -3,6 +3,8 @@ dofile(HL_LANG_DIR.."lua.lang") Description="MoonScript" +Categories = {"source", "script"}+ -- append keywords to Lua list table.insert(Keywords, { Id=1,
@@ -1,6 +1,9 @@ Description="MaxScript" +Categories = {"source", "script"}++ Keywords={ { Id=1, List={"about", "animate", "as", "at", "by", "case", "catch", "collect",
@@ -2,6 +2,8 @@ Description="mIRC Scripting" --msl, nbs +Categories = {"script"}+ Keywords={ { Id=1, List={"if", "while", "else", "for", "inc", "dec" }@@ -43,4 +45,4 @@ Comments = { } } -Operators=[[\(|\)|\[|\]|\{|\}|\,|\;|\.|\:|\&|<|>|\!|=|\/|\*|\%|\+|\-|\~|\||\^]]+Operators=[[\(|\)|\[|\]|\{|\}|\,|\;|\.|\:|\&|<|>|\!|=|\/|\*|\%|\+|\-|\~|\||\^]]
@@ -2,6 +2,9 @@ Description="MSSQL" +Categories = {"database"}++ Identifiers=[[ @?@?[a-zA-Z_][\w]* ]] Keywords={
@@ -1,6 +1,8 @@ Description="Magic eXtensible Markup" +Categories = {"markup"}+ Keywords={ { Id=1, Regex=[[<[!?]?(?!\-\-)\/?[\w\:\-]+>?|[/?]?>]],
@@ -1,6 +1,8 @@ Description="Notation3 (N3), N-Triples, Turtle, SPARQL" +Categories = {"source"}+ Keywords={ { Id=4, Regex=[[@\w+|\^\^<[^>]+?>]],
@@ -1,6 +1,9 @@ Description="Nasal" +Categories = {"source"}++ Keywords={ { Id=1, List={"and", "or", "nil", "if", "elsif", "else", "for", "foreach",
@@ -2,6 +2,9 @@ Description="NeXT Byte Codes" +Categories = {"source"}++ Digits=[[ (?:x|X)[-a-fA-F]+|\d*[\.]?\d+(?:[eE][\-\+]\\d+)?[lLuU]* ]] Keywords={
@@ -1,6 +1,8 @@ Description="Nemerle" +Categories = {"source"}+ Digits=[[ (?:0x|0X)[0-9a-fA-F]+|\d*[\.\_]?\d+(?:[eE][\-\+]\d+)?[lLuUbfdm]* ]] Keywords={
@@ -1,6 +1,8 @@ Description="NetRexx" +Categories = {"source"}+ Keywords={ { Id=1, List={"class", "private", "public", "abstract", "final",
@@ -1,6 +1,8 @@ Description="Nginx configuration" +Categories = {"config"}+ Keywords={ { Id=1, Regex=[[(\w+).*\{]]
@@ -3,6 +3,9 @@ dofile(HL_LANG_DIR.."java.lang") Description="Nice" +Categories = {"source"}++ -- append keywords to Java keywords table.insert(Keywords, { Id=1,
@@ -8,6 +8,8 @@ Original author unknown. Updated by Tristano Ajmone. ------------------------------------------------------------------------------]] Description="Nim" +Categories = {"source"}+ -------------------------------------------------------------------------------- -- Numerals
@@ -1,6 +1,8 @@ Description="NSIS" +Categories = {"config", "script"}+ Keywords={ { Id=1, List={"OutFile", "Name", "Caption", "SubCaption", "BrandingText", "Icon",
@@ -1,6 +1,8 @@ Description="Not eXactly C" +Categories = {"source"}+ Digits=[[ (?:x|X)[-a-fA-F]+|\d*[\.]?\d+(?:[eE][\-\+]\\d+)?[lLuU]* ]] Keywords={
@@ -1,6 +1,8 @@ Description="Oberon" +Categories = {"source"}+ Keywords={ { Id=1, List={"ARRAY", "BEGIN", "CASE", "CONST", "DIV", "DO", "ELSE", "ELSIF", "END", @@ -33,4 +35,4 @@ Comments={ IgnoreCase=false -Operators=[[\(|\)|\[|\]|\{|\}|\,|\;|\:|\&|<|>|\!|\=|\/|\*|\.|\+|\-|\#]]+Operators=[[\(|\)|\[|\]|\{|\}|\,|\;|\:|\&|<|>|\!|\=|\/|\*|\.|\+|\-|\#]]
@@ -1,6 +1,9 @@ Description="Objective C" +Categories = {"source"}++ Keywords={ { Id=1, List={"goto", "break", "return", "continue", "asm", "case", "default", "if",
@@ -1,6 +1,8 @@ Description="Objective Caml" +Categories = {"source"}+ Digits=[[ (?:0x|0X|0b|0B)[0-9a-fA-F]+|\d*[\.\_]?\d+(?:[eE][\-\+]\d+)?[lLuUbfdm]* ]] Keywords={
@@ -1,6 +1,8 @@ Description="Octave" +Categories = {"source", "scientific"}+ Keywords={ { Id=1, List={
@@ -1,6 +1,8 @@ Description="OpenObjectRexx" +Categories = {"source"}+ Keywords={ { Id=1, List={"address", "additional", "any", "arg", "arguments", "array", "by",
@@ -1,6 +1,9 @@ Description="Object Script" +Categories = {"source", "script"}++ Keywords={ { Id=1, List={"new", "instanceof", "castToBoolean", "castToString",
@@ -1,6 +1,8 @@ Description="Oz" +Categories = {"source"}+ Keywords={ { Id=1, List={"andthen", "at", "attr", "case", "catch", "choice", "class",
@@ -2,6 +2,9 @@ Description="Paradox" +Categories = {"source"}++ Identifiers=[[ [a-zA-Z_][\w\-]* ]] Keywords={
@@ -1,5 +1,7 @@ Description="Pascal" +Categories = {"source"}+ Digits=[[ (?:0x|0X|\$)[0-9a-fA-F]+|\d*[\.\_]?\d+(?:[eE][\-\+]\d+)?[lLuUbfdm]* ]] Keywords={
@@ -9,6 +9,8 @@ Description="Portable Document Format" +Categories = {"document"}+ IgnoreCase=false -- File Structure
@@ -1,6 +1,9 @@ Description="Perl" +Categories = {"source", "script"}++ --[[============================================================================== CHANGELOG ==================================================================================
@@ -1,6 +1,8 @@ Description="PHP" +Categories = {"source", "script"}+ Keywords={ { Id=1, List={"abstract", "and", "array", "as", "break", "case",
@@ -1,6 +1,8 @@ Description="Pike" +Categories = {"source"}+ Keywords={ { Id=1, List={"constant", "enum", "typedef", "if", "do", "for", "while", "else", "foreach", "case", "switch", "break", "continue", "return", "sscanf", @@ -74,4 +76,4 @@ PreProcessor={ Prefix=[[#]], } -Operators=[[\(|\)|\[|\]|\{|\}|\,|\;|\:|\&|<|>|\!|\=|\/|\*|\%|\+|\-]]+Operators=[[\(|\)|\[|\]|\{|\}|\,|\;|\:|\&|<|>|\!|\=|\/|\*|\%|\+|\-]]
@@ -2,6 +2,9 @@ Description="PL/1" +Categories = {"source"}++ Keywords={ { Id=1, List={"call", "chksucc", "close", "dcl", "do", "end", "if", "open", "put", "read"},
@@ -3,6 +3,8 @@ dofile(HL_LANG_DIR.."sql.lang") Description="PL/Perl" +Categories = {"database"}+ NestedSections = { { Lang="perl", Delimiter= { [[\$\$]], [[\$\$\s+LANGUAGE]] } }, }
@@ -3,6 +3,9 @@ dofile(HL_LANG_DIR.."sql.lang") Description="PL/Python" +Categories = {"database"}++ NestedSections = { { Lang="python", Delimiter= { [[\$\$]], [[\$\$\s+LANGUAGE]] } }, }
@@ -3,6 +3,8 @@ dofile(HL_LANG_DIR.."sql.lang") Description="PL/Tcl" +Categories = {"database"}+ NestedSections = { { Lang="tcl", Delimiter= { [[\$\$]], [[\$\$\s+LANGUAGE]] } }, }
@@ -1,6 +1,8 @@ Description="PO translation" +Categories = {"config"}+ Keywords={ { Id=1,
@@ -41,6 +41,8 @@ --]] Description="Polygen" +Categories = {"source", "script"}+ IgnoreCase=false EnableIndentation=false ---------------------------------------------------------------------------------
@@ -1,6 +1,8 @@ Description="Pony" +Categories = {"source"}+ --Digits = [[ (?:0x|0X|0b)[0-9a-fA-F']+|\d*[\.]?\d+(?:[eE][\-\+]\d+)?[lLuU]* ]] Keywords={
@@ -1,6 +1,9 @@ Description="POV-Ray" +Categories = {"source", "graphics"}++ Keywords={ { Id=1, List={"bicubic_patch", "blob", "box", "camera", "cone", "cubic", "cylinder",
@@ -1,6 +1,8 @@ Description="Prolog" +Categories = {"source", "functional"}+ Keywords={ { Id=1, List={"true", "fail", "at_end_of_stream", "nl", "repeat", "halt", "is", "rem", "mod"},
@@ -1,6 +1,8 @@ Description="Progress" +Categories = {"source"}+ Identifiers=[[ [a-zA-Z_][\w\-]* ]] Keywords={
@@ -1,6 +1,9 @@ Description="PostScript" +Categories = {"script", "document"}++ Keywords={ { Id=1, List={"pop", "exch", "dup", "copy", "roll", "clear", "count", "mark", "cleartomark", "counttomark", "exec",
langDefs/ps1.lang
@@ -1,5 +1,7 @@ Description="Microsoft PowerShell" +Categories = {"source", "script", "shell"}+ Identifiers=[[ [a-zA-Z_][\w\-]* ]] Keywords={@@ -86,4 +88,4 @@ function OnStateChange(oldState, newState, token) return HL_INTERPOLATION end -end+end
@@ -1,6 +1,8 @@ Description="PATROL" +Categories = {"source"}+ Keywords={ { Id=1, List={"else", "elsif", "exit", "export", "foreach", "function", "if",
@@ -1,6 +1,8 @@ Description="Pure" +Categories = {"source"}+ Keywords={ { Id=1, List={"case", "const", "def", "else", "end", "extern", "if", "infix",
@@ -31,6 +31,8 @@ Description="PureBASIC" +Categories = {"source"}+ IgnoreCase=false Comments={ -- PB IDE color: #00AAAA (Persian Green/Tradewind)
@@ -1,6 +1,9 @@ Description="Pyrex" +Categories = {"source", "script"}++ Keywords={ { Id=1, List={"global", "nextgroup", "pythonfunction", "skipwhite", "contained",
@@ -1,5 +1,7 @@ Description="Python" +Categories = {"source", "script"}+ Digits=[[ (?:0x|0X|0o|0O|0b|0B)[0-9a-fA-F\_]+|\d*[\.\_]?[\d\_]+(?:[eE][\-\+]\d+)?[lLuU]* ]] Keywords={
@@ -1,6 +1,8 @@ Description="Qore" +Categories = {"source"}+ Keywords={ { Id=1, List={"class", "private", "synchronized", "new", "inherits", "shift",
@@ -1,6 +1,8 @@ Description="QMake Project" +Categories = {"config", "script"}+ Keywords={ { Id=1, List={"basename", "contains", "count", "", "dirname", "error", "eval",
@@ -1,6 +1,8 @@ Description="QML" +Categories = {"markup"}+ Keywords={ { Id=1, List={"import", "color","bool","coordinate","date","double","enumeration","font","geocircle",
@@ -1,6 +1,8 @@ Description="Qu" +Categories = {"source", "script"}+ Keywords={ { Id=1, List={"abstract", "as", "atomic", "break", "case", "catch", "class",
@@ -1,5 +1,7 @@ Description="R" +Categories = {"source", "scientific"}+ Identifiers=[[ [a-zA-Z_\.][\w]* ]] Keywords={
@@ -1,6 +1,8 @@ Description="Rebol" +Categories = {"source"}+ Keywords={ { Id=1, List={"REBOL", "rebol", "return", "for", "while", "print", "repeat", "doq"},
@@ -1,6 +1,8 @@ Description="Rexx" +Categories = {"source", "script"}+ Digits=[[ (?:0x|0X)[0-9a-fA-F]+|\d+[\.]?\d*(?:[eE][\-\+]?\d+)?[lLuU]* ]] Keywords={
@@ -2,6 +2,8 @@ Description="Relax NG" +Categories = {"markup"}+ Keywords={ { Id=1, List={"datatypes", "div", "element", "empty", "external", "grammar", "include",
@@ -4,6 +4,7 @@ dofile(HL_LANG_DIR.."sql.lang") Description="RPG" +Categories = {"source", "database"} table.insert(Keywords, { Id=1,
@@ -2,6 +2,8 @@ Description="RPL Programming Language" +Categories = {"source"}+ Keywords={ { Id=1,
langDefs/rs.lang
@@ -1,6 +1,8 @@ Description="Rust" +Categories = {"source"}+ Digits=[[ (?:0x|0o|0b)[0-9a-fA-F\_uif]+|\d+[\.]?[\d\_uif]+(?:[eE][\-\+][\d\_uif]+)?|\d+ ]] Keywords={
@@ -1,6 +1,8 @@ Description="Ruby" +Categories = {"script"}+ Identifiers=[[ [a-zA-Z_][\w\-]* ]] Digits=[[ (?:0x|0X|0b)[0-9a-fA-F]+|\d*[\.\_]?\d+(?:[eE][\-\+]\d+)?[lLuU]? ]]
@@ -1,6 +1,8 @@ Description="PowerPC Assembler" +Categories = {"assembler"}+ Identifiers=[[ [a-zA-Z_]\w*[\.\+\-]? ]] Keywords={
@@ -1,6 +1,8 @@ Description="SAS" +Categories = {"source"}+ Keywords={ { Id=1, List={"put"},
@@ -3,6 +3,8 @@ dofile(HL_LANG_DIR.."java.lang") Description="Scala" +Categories = {"source", "functional"}+ -- append keywords to Java keywords table.insert(Keywords, { Id=1,
@@ -1,6 +1,8 @@ Description="Scilab" +Categories = {"scientific"}+ Keywords={ { Id=1, List={"abort", "ans", "backslash", "bool2s", "boolean", "brackets", "break",
@@ -1,5 +1,7 @@ Description="SASS/SCSS" +Categories = {"markup"}+ Identifiers=[[ [a-zA-Z_\-][\w\-]* ]] Digits=[=[ \#[[:xdigit:]]{3,6}|\d*\.?\d+?\w* ]=]@@ -40,4 +42,4 @@ Comments = { } } -Operators=[[\(|\)|\[|\]|\{|\}|\,|\;|\.|\:|\&|<|>|\!|\=|\/|\*|\%|\+|\-|\~|\#]]+Operators=[[\(|\)|\[|\]|\{|\}|\,|\;|\.|\:|\&|<|>|\!|\=|\/|\*|\%|\+|\-|\~|\#]]
langDefs/sh.lang
@@ -1,6 +1,8 @@ Description="Bash" +Categories = {"script", "shell"}+ Identifiers=[[ [a-zA-Z_][\w\-]*(?!\/) ]] Keywords={
@@ -1,6 +1,8 @@ Description="SMALL" +Categories = {"source"}+ Keywords={ { Id=1, List={"assert", "break", "case", "char", "const", "continue", "default",
@@ -1,6 +1,8 @@ Description="Smalltalk" +Categories = {"source", "functional"}+ Digits=[[ (?:0x|0X)[0-9a-fA-F]+|\d*[\.]?\d+(?:[eE][\-\+]\\d+)?[lLuU]?|\$[\w\$\#\'\-\:\>\<] ]] Keywords={
@@ -1,6 +1,8 @@ Description="Standard ML" +Categories = {"source", "functional"}+ Keywords={ { Id=1, List={"abstraction", "abstype", "and", "andalso", "as", "before", "case",
@@ -1,6 +1,8 @@ Description="SNMP" +Categories = {"protocol"}+ Identifiers=[[ [a-zA-Z_][\w\-]* ]] Keywords={
@@ -1,6 +1,8 @@ Description="SNOBOL" +Categories = {"source"}+ Keywords={ { Id=1, List={ "output", "terminal", "screen", "input", "arb", "arbno", "pos",
@@ -1,6 +1,8 @@ Description="RPM Spec" +Categories = {"config", "script"}+ Keywords={ { Id=1, List={ "Summary", "Name", "Version", "Release", "Copyright", "Group", "URL",
@@ -1,6 +1,8 @@ Description="SPIN SQL" +Categories = {"database"}+ Keywords={ { Id=1, list={"assert", "init", "priority", "proctype", "provided", "active",
@@ -1,6 +1,8 @@ Description="PL/SQL" +Categories = {"database"}+ Keywords={ { Id=1, List={"abort", "abs", "absent", "absolute", "access", "according", "action", "ada",
@@ -1,6 +1,8 @@ Description="Squirrel" +Categories = {"source"}+ Keywords={ { Id=1, List={"break", "catch", "clone", "continue", "case", "delegate", "delete",
@@ -1,5 +1,7 @@ Description="Stylus" +Categories = {"source"}+ Identifiers=[[ [a-zA-Z_\-][\w\-]* ]] Digits=[=[ \#[[:xdigit:]]{3,6}|\d*\.?\d+?\w* ]=]@@ -37,4 +39,4 @@ Comments = { } } -Operators=[[\(|\)|\[|\]|\{|\}|\,|\;|\.|\:|\&|<|>|\!|\=|\/|\*|\%|\+|\-|\~|\#]]+Operators=[[\(|\)|\[|\]|\{|\}|\,|\;|\.|\:|\&|<|>|\!|\=|\/|\*|\%|\+|\-|\~|\#]]
@@ -1,6 +1,9 @@ Description="SVG" +Categories = {"graphics", "document"}++ Keywords={ { Id=1, Regex=[[<[!?]?(?!\-\-)\/?[\w\:\-]+>?|[/?]?>]],@@ -31,4 +34,4 @@ NestedSections = { { Lang="js", Delimiter= { [[<script(?:\s+type=[\"\']text/ecmascript[\"\'])>]], [[<\/script>]] } }, } -IgnoreCase=true+IgnoreCase=true
@@ -1,6 +1,8 @@ Description="Swift" +Categories = {"source"}+ Keywords={ { Id=1, List= {"class", "deinit", "enum", "extension", "func", "import", "init",
@@ -1,6 +1,8 @@ Description="Sybase SQL" +Categories = {"database"}+ Keywords={ { Id=1, Regex=[[sp_\w+]]
@@ -1,6 +1,8 @@ Description="Tcl/Tk" +Categories = {"script"}+ Identifiers=[[ [a-zA-Z_][\w\-]* ]] Keywords={
@@ -1,6 +1,9 @@ Description="TCSH" +Categories = {"script", "shell"}++ Identifiers=[[ [a-zA-Z_\@][\w\-]* ]] Keywords={
@@ -1,6 +1,8 @@ Description="TeX and LaTeX" +Categories = {"markup", "document"}+ Keywords={ { Id=1, Regex=[[\\\w+]],
@@ -1,6 +1,8 @@ Description="TOML" +Categories = {"markup"}+ Keywords={ { Id=1, Regex=[[^\s*(\[.+\])]],
langDefs/ts.lang
@@ -1,6 +1,9 @@ Description="TypeScript" +Categories = {"script", "javascript"}++ Digits=[[ (?:0x)[0-9a-fA-F]+|(?:0b)[01]+|(?:0o)[0-8]+|\d*[\.]?\d+(?:[eE][\-\+]\d+)?[lLuU]* ]] Keywords={
@@ -1,6 +1,8 @@ Description="Transact-SQL" +Categories = {"database"}+ Keywords={ { Id=1, List={ "add", "exists", "precision", "all", "exit", "primary", "alter",
@@ -3,6 +3,9 @@ dofile(HL_LANG_DIR.."ts.lang") Description="TSX (TypeScript with React)" +Categories = {"script", "javascript"}++ table.insert(Keywords, { Id=1, Regex=[[<[!?]?(?!\-\-)\/?[\w\:\-]+>?|[/?]?>]],
@@ -1,6 +1,9 @@ Description="TTCN3" +Categories = {"protocol"}++ Keywords={ { Id=1, List={"if", "else", "while", "for", "do", "return", "log", "testcase",
@@ -1,6 +1,8 @@ Description="Plain text" +Categories = {"text"}+ Keywords={ } @@ -11,4 +13,4 @@ Comments={ Digits = Identifiers -EnableIndentation=true+EnableIndentation=true
@@ -3,6 +3,8 @@ dofile(HL_LANG_DIR.."c.lang") Description="UPC (and C, technically)" +Categories = {"source"}+ -- append keywords to C keywords table.insert(Keywords, { Id=1,
@@ -1,6 +1,8 @@ Description="Vala" +Categories = {"source"}+ Keywords={ { Id=1, List={"if", "else", "switch", "case", "default", "break", "continue",
@@ -1,6 +1,8 @@ Description="Visual Basic" +Categories = {"source"}+ Keywords={ { Id=1, List={"and", "as", "begin", "case", "call", "continue", "do", "each",
@@ -1,6 +1,8 @@ Description="Verilog" +Categories = {"hardware"}+ -- recognize stuff like 5'b0 as number Digits=[[ (?:0x|0X)[0-9a-fA-F]+|\d*[\.\_]?[\d+\'](?:[eE][\-\+]\d+)?h?[0-9a-fA-F]* ]]
@@ -1,6 +1,8 @@ Description="VHDL" +Categories = {"hardware"}+ Keywords={ { Id=1, List={"abs", "access", "after", "all", "and", "architecture", "array",
@@ -1,5 +1,7 @@ Description="vimscript" +Categories = {"script", "config"}+ Digits = [[ (?:[0-9])(?:0x|0X|0b)[0-9a-fA-F']+|#?\d*[\.]?\d+(?:[eE][\-\+]\d+)?[lLuU]* ]] Keywords={
@@ -1,6 +1,8 @@ Description="vue.js (beta)" +Categories = {"script", "javascript"}+ Keywords={ { Id=1, Regex=[[<[!?]?(?!\-\-)\/?[\w\:\-]+>?|[/?]?>]],
@@ -1,6 +1,8 @@ Description="Whiley" +Categories = {"source"}+ Digits = [[ (?:0x)[0-9a-fA-F']+|\d*[\.]?\d+(?:[eE][\-\+]\d+)?[blLuU]* ]] Keywords={
@@ -1,6 +1,9 @@ Description="XML" +Categories = {"config", "protocol"}++ Keywords={ { Id=1, Regex=[[<[!?]?(?!\-\-)\/?[\w\:\-]+>?|[/?]?>]],
@@ -1,6 +1,8 @@ Description="SuperX++" +Categories = {"source"}+ Keywords={ { Id=1, Regex=[[<!?\/?\w+>?|>]],
@@ -1,6 +1,8 @@ Description="Yaiff" +Categories = {"source"}+ Keywords={ { Id=1, List={"def", "final", "class", "public", "private", "interface", "else", "if", "const", "return"},
@@ -1,5 +1,6 @@ Description="Ansible YAML" +Categories = {"markup"} Identifiers=[[ [a-zA-Z_][a-zA-Z_\:]* ]]
@@ -1,5 +1,7 @@ Description="Yang" +Categories = {"protocol"}+ Identifiers=[[ [a-zA-Z_][\w\-]* ]] Keywords={