From e893fe1a487ac3ceb9ec131067604beaa5584286 Mon Sep 17 00:00:00 2001 From: Will Budic Date: Sun, 9 Nov 2025 20:13:09 +1100 Subject: [PATCH] Revert "Spelling constants not constances." This reverts commit 2113893010a6ebaae4dfa6fadfda6f674336b69b. --- Specifications_For_CNF_ReadMe.md | 8 ++++---- tests/example.cnf | 4 ++-- tests/testCNFConstances.pl | 6 +++--- vscode_local_extensions/perlcnf-extension/extension.js | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/Specifications_For_CNF_ReadMe.md b/Specifications_For_CNF_ReadMe.md index 614849f..a9b1836 100644 --- a/Specifications_For_CNF_ReadMe.md +++ b/Specifications_For_CNF_ReadMe.md @@ -27,11 +27,11 @@ Quick Jump: [CNF Tag Formats](#cnf-tag-formats) | [CNF Collections Formatting] 4. Multi line values are tag ended on a separate line with an **>>>**. 5. CNF tag value can post processed by placing macros making it a template. 6. Standard markup of a macro is to enclose the property name or number with a triple dollar signifier **\$\$\$**{macro}**\$\$\$**. - 1. Precedence of resolving the property name/value is by first passed macros, then config anons and finally the looking up constants. + 1. Precedence of resolving the property name/value is by first passed macros, then config anons and finally the looking up constances. 2. Nested macros resolving from linked in other properties is currently not supported. 7. CNF full tag syntax format: **```<<{$|@|%}NAME{}{}>>```**, the name and instruction parts, sure open but don't have to be closed with **>** on a multiple line value. 8. CNF instructions and constants are uppercase. - 1. Example 1 format with instruction: ```<<>>``` autonomous const ins., with inner attributes as constants. + 1. Example 1 format with instruction: ```<<>>``` autonomous const ins., with inner attributes as constances. 2. Example 2 format with instruction: ```<<{$sig}{NAME}>>``` A single const property with a multi line value. 3. Example 3 format with instruction: ```<>>``` A single const property with a multi line value. 4. Example 4 format with instruction: ```<<{NAME}<{INSTRUCTION}<{value}>>>``` A anon. @@ -277,7 +277,7 @@ Quick Jump: [Introduction](#introduction) | [CNF Tag Formats](#cnf-tag-formats) 1. Reserved words relate to instructions, that are specially treated, and interpreted by the parser to perform extra or specifically processing on the current value. 2. Reserved instructions can't be used for future custom ones, and also not recommended tag or property names. 3. Current Reserved words list is. - - CONST - Concentrated list of constants, or individually tagged a name and its value. + - CONST - Concentrated list of constances, or individually tagged a name and its value. - VARIABLE - Concentrated list of anons, or individually tagged name and its value. - DATA - CNF scripted delimited data property, having uniform table data rows. - FILE - CNF scripted delimited data property is in a separate file. @@ -285,7 +285,7 @@ Quick Jump: [Introduction](#introduction) | [CNF Tag Formats](#cnf-tag-formats) - TABLE - SQL related. - TREE - Property is a CNFNode tree containing multiple depth nested children nodes. - INCLUDE - Include properties from another file to this repository. - - Included files constants are ignored if are in parent file assigned. + - Included files constances are ignored if are in parent file assigned. - Includes are processed last and not on the spot, so their anons encountered take over precedence. - Include instruction use is not recommended and is as same to as calling the parse method of the parser. - INDEX - SQL related. diff --git a/tests/example.cnf b/tests/example.cnf index b088553..d635a09 100644 --- a/tests/example.cnf +++ b/tests/example.cnf @@ -159,9 +159,9 @@ Or performs white-space stripings or trimming. >> /** - Typical app settings converted into CNF constants via meta tag instruction. + Typical app settings converted into CNF constances via meta tag instruction. If name is uppercase and has a '$' prefix. - The Collection property will exlude them from its list and appoint as constants + The Collection property will exlude them from its list and appoint as constances if they have not been already assigned. This is a pure convenince thing to keep settings under one property. **/ diff --git a/tests/testCNFConstances.pl b/tests/testCNFConstances.pl index 81e15bd..89b9a76 100644 --- a/tests/testCNFConstances.pl +++ b/tests/testCNFConstances.pl @@ -24,7 +24,7 @@ try{ $test->subcase('Test undeclared constance access!'); try{ my $immutable = $cnf->{IMMUTABLE}; - $test->failed("Failed access allowed to undefined constants.") + $test->failed("Failed access allowed to undefined constances.") }catch{ $test->passed("It errored, trying to access undeclared constance."); } @@ -35,7 +35,7 @@ try{ $test->passed("Passed to access constance with variable resolve."); $test->isDefined('$FRENCH_PARAGRAPH',$immutable); }catch{ - $test->failed("Failed access allowed to undefined constants.") + $test->failed("Failed access allowed to undefined constances.") } # ### @@ -51,7 +51,7 @@ try{ # ### - # Test constants. + # Test constances. ### $test->case("Test mutability."); try{ diff --git a/vscode_local_extensions/perlcnf-extension/extension.js b/vscode_local_extensions/perlcnf-extension/extension.js index 783af3f..8ea9bc6 100644 --- a/vscode_local_extensions/perlcnf-extension/extension.js +++ b/vscode_local_extensions/perlcnf-extension/extension.js @@ -5,7 +5,7 @@ const vscode = require('vscode'); const cnfKeywords = [ { keyword: "CONSTANCE", - description: "Concentrated list of constants, or individually tagged name and its value.", + description: "Concentrated list of constances, or individually tagged name and its value.", template: "CONST>", // Simple completion }, { -- 2.34.1