Skip to content

Commit ee60f7e

Browse files
authored
Add missing token types for Rego + add Rego to README (#919)
1 parent ae36e63 commit ee60f7e

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ translators for Pygments lexers and styles.
5555
| O | Objective-C, OCaml, Octave, Odin, OnesEnterprise, OpenEdge ABL, OpenSCAD, Org Mode |
5656
| P | PacmanConf, Perl, PHP, PHTML, Pig, PkgConfig, PL/pgSQL, plaintext, Plutus Core, Pony, PostgreSQL SQL dialect, PostScript, POVRay, PowerQuery, PowerShell, Prolog, PromQL, Promela, properties, Protocol Buffer, PRQL, PSL, Puppet, Python, Python 2 |
5757
| Q | QBasic, QML |
58-
| R | R, Racket, Ragel, Raku, react, ReasonML, reg, reStructuredText, Rexx, RPMSpec, Ruby, Rust |
58+
| R | R, Racket, Ragel, Raku, react, ReasonML, reg, Rego, reStructuredText, Rexx, RPMSpec, Ruby, Rust |
5959
| S | SAS, Sass, Scala, Scheme, Scilab, SCSS, Sed, Sieve, Smali, Smalltalk, Smarty, Snobol, Solidity, SourcePawn, SPARQL, SQL, SquidConf, Standard ML, stas, Stylus, Svelte, Swift, SYSTEMD, systemverilog |
6060
| T | TableGen, Tal, TASM, Tcl, Tcsh, Termcap, Terminfo, Terraform, TeX, Thrift, TOML, TradingView, Transact-SQL, Turing, Turtle, Twig, TypeScript, TypoScript, TypoScriptCssData, TypoScriptHtmlData |
6161
| V | V, V shell, Vala, VB.net, verilog, VHDL, VHS, VimL, vue |

lexers/embedded/rego.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,12 @@
8383
<rule pattern=":=">
8484
<token type="Operator"/>
8585
</rule>
86+
<rule pattern="[[\]{}():;]+">
87+
<token type="Punctuation"/>
88+
</rule>
89+
<rule pattern="[$a-zA-Z_]\w*">
90+
<token type="NameOther"/>
91+
</rule>
8692
</state>
8793
</rules>
8894
</lexer>

0 commit comments

Comments
 (0)