Skip to content

Commit b93bf92

Browse files
committed
updated keywords based on OPA spec
1 parent 7712160 commit b93bf92

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

packages/components/src/modifiers/hds-code-editor/languages/rego.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ export function mkRego(parserConf: ParserConfig = {}) {
273273
return 'number';
274274
}
275275

276-
// operators ---
276+
// operators
277277
for (let i = 0; i < operators.length; i++) {
278278
if (stream.match(operators[i]!)) {
279279
return 'operator';

showcase/app/controllers/components/code-editor.js

+4
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,17 @@ ut labore et dolore magna aliqua`;
1717
label: 'Rego',
1818
code: `package example.test
1919
import data.users
20+
2021
default allow = false
22+
2123
# single-line comment
24+
2225
allow with data.something as foo {
2326
some i in input.paths
2427
not forbidden
2528
time.now() >= /* inline block comment */ 1672531200
2629
}
30+
2731
deny { base64.decode(input.encoded) == "decoded" }
2832
`,
2933
},

0 commit comments

Comments
 (0)