From 97e08483d813cc694ff834b597503c756423fc56 Mon Sep 17 00:00:00 2001 From: ObserverOfTime Date: Tue, 15 Nov 2022 18:48:25 +0200 Subject: [PATCH] highlights(pascal): use more specific groups --- queries/pascal/highlights.scm | 36 ++++++++++++++++++++--------------- 1 file changed, 21 insertions(+), 15 deletions(-) diff --git a/queries/pascal/highlights.scm b/queries/pascal/highlights.scm index 77c509cc1..7a92acdc7 100644 --- a/queries/pascal/highlights.scm +++ b/queries/pascal/highlights.scm @@ -3,7 +3,6 @@ (kProgram) (kLibrary) (kUnit) - (kUses) (kBegin) (kEnd) @@ -12,15 +11,13 @@ (kVar) (kThreadvar) (kConst) - (kResourcestring) (kConstref) + (kResourcestring) (kOut) (kType) (kLabel) (kExports) - (kAbsolute) - (kProperty) (kRead) (kWrite) @@ -39,7 +36,6 @@ (kSet) (kOf) (kHelper) - (kPacked) (kInherited) @@ -58,14 +54,6 @@ (kInitialization) (kFinalization) - (kPublished) - (kPublic) - (kProtected) - (kPrivate) - (kStrict) - (kRequired) - (kOptional) - (kTry) (kExcept) (kFinally) @@ -91,7 +79,25 @@ (kThen) (kElse) ] @conditional - + +[ + (kPublished) + (kPublic) + (kProtected) + (kPrivate) + + (kStrict) + (kRequired) + (kOptional) +] @type.qualifier + +[ + (kPacked) + + (kAbsolute) +] @storageclass + +(kUses) @include ; -- Attributes @@ -243,7 +249,7 @@ ; -- Comments (comment) @comment -(pp) @function.macro +(pp) @preproc ; -- Type declaration