From 494bf77bea705dfa5801ce49eb84c18ba0ec9a89 Mon Sep 17 00:00:00 2001 From: David de Hilster Date: Wed, 14 Oct 2026 06:36:25 -0400 Subject: [PATCH] Grammars: @POSTCODE highlighting, auto-close and indent (engine 4.2.19, #392) Bumps the grammars submodule to nlpplus-tmbundle main and syncs nlp-configuration.json with it, as check-grammars requires. Co-Authored-By: Claude Opus 5.5 --- grammars | 2 +- nlp-configuration.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/grammars b/grammars index ab0b1389..da717187 160000 --- a/grammars +++ b/grammars @@ -1 +1 @@ -Subproject commit ab0b1389aff2f3b931743e0d43b97f07dc543ad3 +Subproject commit da717187ffca32507cfc22fc881d7620b34ffc66 diff --git a/nlp-configuration.json b/nlp-configuration.json index a7b4c061..da8f9937 100644 --- a/nlp-configuration.json +++ b/nlp-configuration.json @@ -16,6 +16,7 @@ ["'", "'"], ["@CODE", "\n@@CODE"], ["@DECL", "\n@@DECL"], + ["@POSTCODE", "\n@@POSTCODE"], ["@RULES", "@@"] ], "surroundingPairs": [ @@ -27,7 +28,7 @@ ], "wordPattern": "(-?\\d*\\.\\d\\w*)|([^\\`\\~\\!\\@\\#\\%\\^\\&\\*\\(\\)\\=\\+\\[\\{\\]\\}\\\\\\|\\;\\:\\'\\\"\\,\\.\\<\\>\\/\\?\\s]+)", "indentationRules": { - "increaseIndentPattern": "(^\\s*(@CODE|@DECL|@PRE|@POST|@CHECK)\\b.*)|(\\{[^}\"']*$)|(\\([^)\"']*$)", + "increaseIndentPattern": "(^\\s*(@CODE|@POSTCODE|@DECL|@PRE|@POST|@CHECK)\\b.*)|(\\{[^}\"']*$)|(\\([^)\"']*$)", "decreaseIndentPattern": "^\\s*(\\}|\\)|@@)" }, "onEnterRules": [