diff options
Diffstat (limited to 'queries/pascal')
| -rw-r--r-- | queries/pascal/highlights.scm | 31 |
1 files changed, 30 insertions, 1 deletions
diff --git a/queries/pascal/highlights.scm b/queries/pascal/highlights.scm index 3a1c484e0..e11e0eaa2 100644 --- a/queries/pascal/highlights.scm +++ b/queries/pascal/highlights.scm @@ -248,7 +248,36 @@ ; -- Comments -(comment) @comment +(comment) @comment @spell + +((comment) @comment.documentation + (#lua-match? @comment.documentation "^///[^/]")) +((comment) @comment.documentation + (#lua-match? @comment.documentation "^///$")) + +((comment) @comment.documentation + . [(unit) (declProc)]) + +(declTypes + (comment) @comment.documentation + . (declType)) + +(declSection + (comment) @comment.documentation + . [(declField) (declProc)]) + +(declEnum + (comment) @comment.documentation + . (declEnumValue)) + +(declConsts + (comment) @comment.documentation + . (declConst)) + +(declVars + (comment) @comment.documentation + . (declVar)) + (pp) @preproc ; -- Type declaration |
