abl-tmlanguage 1.3.26 → 1.3.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ 1.3.27
2
+ ======
3
+
4
+ - 🐛 Fix scoping of parameter definition with 'class' in the type name (PR #75)
5
+
1
6
  1.3.26
2
7
  ======
3
8
 
@@ -1659,7 +1659,7 @@
1659
1659
  "end": "(?=\\s|\\)|\\.|,)",
1660
1660
  "patterns": [
1661
1661
  {
1662
- "match": "\\s*([Cc][Ll][Aa][Ss]{2})\\s*",
1662
+ "match": "\\b([Cc][Ll][Aa][Ss]{2})\\b",
1663
1663
  "captures": {
1664
1664
  "1": {
1665
1665
  "name": "keyword.other.abl"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "abl-tmlanguage",
3
- "version": "1.3.26",
3
+ "version": "1.3.27",
4
4
  "description": "TextMate grammar for Progress OpenEdge ABL Language",
5
5
  "main": "",
6
6
  "type": "commonjs",
@@ -926,4 +926,53 @@ describe('', () => {
926
926
  { "startIndex": 81, "endIndex": 82, "scopes": ["source.abl", "punctuation.terminator.abl"] } // ':'
927
927
  ];
928
928
  shared.itShouldMatchExpectedScopes(statement, expectedTokens);
929
- })
929
+ })
930
+
931
+ describe('', () => {
932
+ let statement = `method public character GetStaticQueryNames (pcTempTableName as character,
933
+ pcIndexName as character,
934
+ output poParameterType as ClassName ):`;
935
+
936
+ let expectedTokens = [
937
+ [
938
+ { "startIndex": 0, "endIndex": 6, "scopes": ["source.abl", "meta.define.method.abl", "keyword.other.abl"] }, // 'method'
939
+ { "startIndex": 6, "endIndex": 7, "scopes": ["source.abl", "meta.define.method.abl"] }, // ' '
940
+ { "startIndex": 7, "endIndex": 13, "scopes": ["source.abl", "meta.define.method.abl", "keyword.other.abl"] }, // 'public'
941
+ { "startIndex": 13, "endIndex": 14, "scopes": ["source.abl", "meta.define.method.abl"] }, // ' '
942
+ { "startIndex": 14, "endIndex": 23, "scopes": ["source.abl", "meta.define.method.abl", "storage.type.abl"] }, // 'character'
943
+ { "startIndex": 23, "endIndex": 24, "scopes": ["source.abl", "meta.define.method.abl"] }, // ' '
944
+ { "startIndex": 24, "endIndex": 43, "scopes": ["source.abl", "meta.define.method.abl", "entity.name.function.abl"] }, // 'GetStaticQueryNames'
945
+ { "startIndex": 43, "endIndex": 44, "scopes": ["source.abl", "meta.define.method.abl"] }, // ' '
946
+ { "startIndex": 44, "endIndex": 45, "scopes": ["source.abl", "meta.define.method.abl", "meta.brace.round.js"] }, // '('
947
+ { "startIndex": 45, "endIndex": 60, "scopes": ["source.abl", "meta.define.method.abl", "variable.parameter.abl"] }, // 'pcTempTableName'
948
+ { "startIndex": 60, "endIndex": 61, "scopes": ["source.abl", "meta.define.method.abl"] }, // ' '
949
+ { "startIndex": 61, "endIndex": 63, "scopes": ["source.abl", "meta.define.method.abl", "keyword.other.abl"] }, // 'as'
950
+ { "startIndex": 63, "endIndex": 64, "scopes": ["source.abl", "meta.define.method.abl"] }, // ' '
951
+ { "startIndex": 64, "endIndex": 73, "scopes": ["source.abl", "meta.define.method.abl", "storage.type.abl"] }, // 'character'
952
+ { "startIndex": 73, "endIndex": 74, "scopes": ["source.abl", "meta.define.method.abl", "punctuation.separator.comma.abl"] } // ','
953
+ ],
954
+ [
955
+ { "startIndex": 0, "endIndex": 5, "scopes": ["source.abl", "meta.define.method.abl"] }, // ' '
956
+ { "startIndex": 5, "endIndex": 16, "scopes": ["source.abl", "meta.define.method.abl", "variable.parameter.abl"] }, // 'pcIndexName'
957
+ { "startIndex": 16, "endIndex": 17, "scopes": ["source.abl", "meta.define.method.abl"] }, // ' '
958
+ { "startIndex": 17, "endIndex": 19, "scopes": ["source.abl", "meta.define.method.abl", "keyword.other.abl"] }, // 'as'
959
+ { "startIndex": 19, "endIndex": 20, "scopes": ["source.abl", "meta.define.method.abl"] }, // ' '
960
+ { "startIndex": 20, "endIndex": 29, "scopes": ["source.abl", "meta.define.method.abl", "storage.type.abl"] }, // 'character'
961
+ { "startIndex": 29, "endIndex": 30, "scopes": ["source.abl", "meta.define.method.abl", "punctuation.separator.comma.abl"] } // ','
962
+ ],
963
+ [
964
+ { "startIndex": 0, "endIndex": 5, "scopes": ["source.abl", "meta.define.method.abl"] }, // ' '
965
+ { "startIndex": 5, "endIndex": 11, "scopes": ["source.abl", "meta.define.method.abl", "keyword.other.abl"] }, // 'output'
966
+ { "startIndex": 11, "endIndex": 12, "scopes": ["source.abl", "meta.define.method.abl"] }, // ' '
967
+ { "startIndex": 12, "endIndex": 27, "scopes": ["source.abl", "meta.define.method.abl", "variable.parameter.abl"] }, // 'poParameterType'
968
+ { "startIndex": 27, "endIndex": 28, "scopes": ["source.abl", "meta.define.method.abl"] }, // ' '
969
+ { "startIndex": 28, "endIndex": 30, "scopes": ["source.abl", "meta.define.method.abl", "keyword.other.abl"] }, // 'as'
970
+ { "startIndex": 30, "endIndex": 31, "scopes": ["source.abl", "meta.define.method.abl"] }, // ' '
971
+ { "startIndex": 31, "endIndex": 40, "scopes": ["source.abl", "meta.define.method.abl", "entity.name.type.abl"] }, // 'ClassName'
972
+ { "startIndex": 40, "endIndex": 41, "scopes": ["source.abl", "meta.define.method.abl"] }, // ' '
973
+ { "startIndex": 41, "endIndex": 42, "scopes": ["source.abl", "meta.define.method.abl", "meta.brace.round.js"] }, // ')'
974
+ { "startIndex": 42, "endIndex": 43, "scopes": ["source.abl", "punctuation.terminator.abl"] } // ':'
975
+ ]
976
+ ];
977
+ shared.itShouldMatchExpectedScopes(statement, expectedTokens);
978
+ })