201024.2 · 8b5fc87f254e5b497978cc49af1be6b1af8d6132
added support for Rego
reading declarations
@@ -15,6 +15,7 @@ xx.10.2020 - improved Ruby code folding of the outhtml_codefold plug-in - updated astyle lib to rev 672 - added support for reStructured Text (https://gitlab.com/saalen/highlight/-/issues/170)+ - added support for Rego (openpolicyagent.org) - CLI: adapted default xterm256/truecolor theme to terminal background colour - GUI: initial font set to Monospace - GUI: replaced highlight.xpm by highlight.png icon
gui_files/ext/fileopenfilter.conf
@@ -184,6 +184,7 @@ Qore (*.q) Qu (*.qu) R (*.r) Rebol (*.rebol)+Rego (*.rego) Relax-NG-Compact (*.rnc) reStructuredText (*.rst) Rexx (*.rexx)
@@ -0,0 +1,38 @@+-- http://github.com/open-policy-agent/opa++Description="Rego"++Categories = {"source"}++Digits = [[ (?:0x|0X|0b)[0-9a-fA-F']+|\d*[\.]?\d+(?:[eE][\-\+]\d+)?[lLuU]* ]]++Keywords={+ { Id=1,+ List={+ "as", "default", "else", "false", "import", "package", "not", "null", "true", "with",+ }+ },+ { Id=3,+ Regex=[[(\w+)\s*\:\:]]+ },+ { Id=4,+ Regex=[[(\w+)\s*\(]]+ }+}++Strings = {+ Delimiter=[["|']],+ RawPrefix="R",+ Interpolation = [[ %\w ]],+}++Comments = {+ {+ Block=false,+ Delimiter = { [[#]] }+ }+}++IgnoreCase=false++Operators=[[\(|\)|\[|\]|\{|\}|\,|\;|\.|\:|\&|<|>|\!|=|\/|\*|\%|\+|\-|\~|\||\^|\?]]