File tree 2 files changed +5
-1
lines changed
packages/components/src/modifiers/hds-code-editor/languages
showcase/app/controllers/components
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -273,7 +273,7 @@ export function mkRego(parserConf: ParserConfig = {}) {
273
273
return 'number' ;
274
274
}
275
275
276
- // operators ---
276
+ // operators
277
277
for ( let i = 0 ; i < operators . length ; i ++ ) {
278
278
if ( stream . match ( operators [ i ] ! ) ) {
279
279
return 'operator' ;
Original file line number Diff line number Diff line change @@ -17,13 +17,17 @@ ut labore et dolore magna aliqua`;
17
17
label : 'Rego' ,
18
18
code : `package example.test
19
19
import data.users
20
+
20
21
default allow = false
22
+
21
23
# single-line comment
24
+
22
25
allow with data.something as foo {
23
26
some i in input.paths
24
27
not forbidden
25
28
time.now() >= /* inline block comment */ 1672531200
26
29
}
30
+
27
31
deny { base64.decode(input.encoded) == "decoded" }
28
32
` ,
29
33
} ,
You can’t perform that action at this time.
0 commit comments