From 67f7839e72b5288d674e3ebb718d8e4e2a07eb08 Mon Sep 17 00:00:00 2001 From: Marc Durdin Date: Tue, 30 Nov 2021 14:56:51 +1100 Subject: [PATCH] feat(developer): support for start-of-sentence in IDE Relates to #3621. Adds `&layoutChanged`, `begin newcontext`, `begin postkeystroke` support to IDE editor and keyword help. --- windows/src/developer/TIKE/help/kwhelp.pas | 9 +++++++-- .../src/developer/TIKE/xml/app/editor/language.keyman.js | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/windows/src/developer/TIKE/help/kwhelp.pas b/windows/src/developer/TIKE/help/kwhelp.pas index 5e9684fb27..abe9437f9c 100644 --- a/windows/src/developer/TIKE/help/kwhelp.pas +++ b/windows/src/developer/TIKE/help/kwhelp.pas @@ -41,7 +41,7 @@ type end; const - HelpArray: array[0..74] of THelpArray = ( // I4840 + HelpArray: array[0..78] of THelpArray = ( // I4840 (Word: 'BITMAP' ), (Word: 'begin' ), (Word: 'COPYRIGHT' ), @@ -87,6 +87,8 @@ const (Word: 'begin' ), (Word: 'ansi'; Topic: 'begin' ), (Word: 'unicode'; Topic: 'begin' ), + (Word: 'postkeystroke'; Topic: 'begin' ), + (Word: 'newcontext'; Topic: 'begin' ), (Word: 'context' ), (Word: 'deadkey' ), @@ -95,6 +97,7 @@ const (Word: 'group' ), (Word: 'using'; Topic: 'group' ), (Word: 'keys'; Topic: 'group' ), + (Word: 'readonly'; Topic: 'group' ), (Word: 'if' ), // I4840 (Word: 'index' ), @@ -125,7 +128,9 @@ const (Word: '*character'; Topic: 'strings'; Guide: True ), (Word: '*string'; Topic: 'strings'; Guide: True ), (Word: '*constant'; Topic: 'constants'; Guide: True ), - (Word: '*compile-target'; Topic: 'compile-targets'; Guide: True ) + (Word: '*compile-target'; Topic: 'compile-targets'; Guide: True ), + + (Word: '&layerchanged'; Topic: 'layerchanged') ); function IsValidHelpToken(var token: WideString; HelpOnSyntacticElements: Boolean): Boolean; diff --git a/windows/src/developer/TIKE/xml/app/editor/language.keyman.js b/windows/src/developer/TIKE/xml/app/editor/language.keyman.js index 6571d1882f..e758af12cf 100644 --- a/windows/src/developer/TIKE/xml/app/editor/language.keyman.js +++ b/windows/src/developer/TIKE/xml/app/editor/language.keyman.js @@ -17,7 +17,7 @@ define("language.keyman", ["require", "exports"], function (require, exports) { ], predefined: [ - 'begin', 'unicode', 'ansi', 'group', 'using', 'keys', 'match', 'nomatch' + 'begin', 'unicode', 'ansi', 'newcontext', 'postkeystroke', 'group', 'using', 'keys', 'readonly', 'match', 'nomatch' ], operators: [