aboutsummaryrefslogtreecommitdiffstats
path: root/runtime/queries/fsh/highlights.scm
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/queries/fsh/highlights.scm')
-rw-r--r--runtime/queries/fsh/highlights.scm97
1 files changed, 97 insertions, 0 deletions
diff --git a/runtime/queries/fsh/highlights.scm b/runtime/queries/fsh/highlights.scm
new file mode 100644
index 000000000..2354a2037
--- /dev/null
+++ b/runtime/queries/fsh/highlights.scm
@@ -0,0 +1,97 @@
+[
+ "("
+ ")"
+] @punctuation.bracket
+
+[
+ "^"
+ "="
+ ":"
+] @operator
+
+[
+ "#"
+ ".."
+ "*"
+ "->"
+] @punctuation.special
+
+; Entities
+[
+ "Profile"
+ "Alias"
+ "Extension"
+ "Invariant"
+ "Instance"
+ "ValueSet"
+ "CodeSystem"
+ "Mapping"
+ "Logical"
+ "Resource"
+ "RuleSet"
+] @keyword
+
+; Metadata Keywords
+[
+ "Parent"
+ "Title"
+ "Description"
+ "Id"
+ "Severity"
+ "InstanceOf"
+ "Usage"
+ "Source"
+ "XPath"
+ "Target"
+] @keyword
+
+; Rule Keywords
+[
+ "contentReference"
+ "insert"
+ "and"
+ "or"
+ "contains"
+ "named"
+ "only"
+ "obeys"
+ "valueset"
+ "codes"
+ "from"
+ "include"
+ "exclude"
+ "where"
+ "system"
+ "exactly"
+] @keyword.operator
+
+; Types
+[
+ "Reference"
+ "Canonical"
+] @type.builtin
+
+(sd_metadata
+ (parent
+ (name))) @type
+
+(target_type
+ (name)) @type
+
+; Strings
+(string) @string
+
+(multiline_string) @string
+
+; Constants
+(strength_value) @constant
+
+(bool) @boolean
+
+(flag) @constant
+
+; Special Params
+(code_value) @variable.parameter
+
+; Extras
+(fsh_comment) @comment @spell