From 2da885abe8fb9376d646a08386c5fd2e1a2e4671 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89tienne=20Reuh=20Fildadut?= Date: Mon, 1 Jan 2024 14:13:20 +0100 Subject: [PATCH] Update to Anselme v2.0.0-beta --- Anselme.sublime-syntax | 19 ++++++++++++------- Comments.tmPreferences | 2 +- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/Anselme.sublime-syntax b/Anselme.sublime-syntax index c2e1176..940dad5 100755 --- a/Anselme.sublime-syntax +++ b/Anselme.sublime-syntax @@ -19,7 +19,7 @@ variables: contexts: prototype: - - match: '\(\(' + - match: '\/\*' scope: comment.line.anselme punctuation.definition.comment.anselme push: comment - match: '\s+' @@ -32,10 +32,10 @@ contexts: comment: - meta_scope: comment.line.anselme - - match: '\(\(' + - match: '\/\*' scope: punctuation.definition.comment.anselme push: comment - - match: '\)\)|$' + - match: '\*\/|$' scope: punctuation.definition.comment.anselme pop: true @@ -54,10 +54,15 @@ contexts: - match: '\(' scope: punctuation.section.parens.begin.anselme push: parenthesis - - match: '\::?[&@]?\$' + - match: '\::?&?@?\$' scope: keyword.declaration.anselme push: function_definition - - match: '(\::?[&@]?)({{identifier}})' + - match: '(\#)({{identifier}})' + captures: + 1: keyword.declaration.anselme + 2: entity.name.label.anselme + push: secondary + - match: '(\::?&?@?)({{identifier}})' captures: 1: keyword.declaration.anselme 2: variable.other.anselme @@ -102,7 +107,7 @@ contexts: - match: '\!' scope: keyword.operator.logical.anselme set: primary - - match: '\*' + - match: '\*|\%|\>' scope: keyword.operator.anselme set: primary @@ -211,7 +216,7 @@ contexts: - match: '\~|\~\?|\|\>' scope: keyword.control.conditional.anselme push: primary - - match: '\#|\:\:|\:' + - match: '\#|\:\:|\:|\-\>' scope: keyword.operator.anselme push: primary - match: '\&|\|' diff --git a/Comments.tmPreferences b/Comments.tmPreferences index 1b43c0a..9f69c58 100644 --- a/Comments.tmPreferences +++ b/Comments.tmPreferences @@ -13,7 +13,7 @@ name TM_COMMENT_START value - (( + /*