Skip to content

Commit

Permalink
Add missing YAML highlighting (#3913)
Browse files Browse the repository at this point in the history
There were some newer keys that weren't being highlighted.
  • Loading branch information
predictiple authored Nov 23, 2024
1 parent 0e96559 commit 3158725
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gui/velociraptor/src/components/core/mode-yaml.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export class YamlHighlightRules extends window.ace.acequire("ace/mode/yaml_highl

this.$rules["start"] = [{
token : "keyword",
regex : /\s*-?\s*(name|type|description|choices|sources|parameters|author|reference|required_permissions|resources|tools|parameters|url|default|serve_locally|github_asset_regex|github_project|column_types|imports|notebook|template|timeout|ops_per_second|max_rows|max_upload_bytes|artifact_type|version|expected_hash):/,
regex : /\s*-?\s*(name|aliases|type|description|choices|validating_regex|friendly_name|sources|parameters|author|reference|references|reports|required_permissions|resources|tools|parameters|url|default|serve_locally|github_asset_regex|github_project|column_types|imports|notebook|template|output|timeout|ops_per_second|max_rows|max_upload_bytes|artifact_type|version|expected_hash):/,
}, {
token: "keyword",
regex: /.*(export|precondition|query):\s*[|]?/,
Expand Down

0 comments on commit 3158725

Please sign in to comment.