abl-tmlanguage 1.3.14 → 1.3.15

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.15
2
+ ======
3
+
4
+ - 🐛 Fix include paths with more than one \. (vscode-abl/vscode-abl#362)
5
+
1
6
  1.3.14
2
7
  ======
3
8
 
@@ -3695,7 +3695,7 @@
3695
3695
  "include-file": {
3696
3696
  "name": "meta.include.abl",
3697
3697
  "comment": "https://docs.progress.com/bundle/abl-reference/page/Include-file-reference.html. Filesystem names can be unicode",
3698
- "begin": "({)\\s*(['\"]?([\\\\\\/\\w$\\-]+)(\\.[\\w]+['\"]?)?)",
3698
+ "begin": "({)\\s*(['\"]?([\\\\\\/\\w$\\-\\.]+)(\\.\\w+['\"]?)?)",
3699
3699
  "beginCaptures": {
3700
3700
  "1": {
3701
3701
  "name": "punctuation.section.abl"
@@ -5826,4 +5826,4 @@
5826
5826
  },
5827
5827
  "scopeName": "source.abl",
5828
5828
  "uuid": "075bb86e-03ea-4fea-bac0-e11b9dc73e03"
5829
- }
5829
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "abl-tmlanguage",
3
- "version": "1.3.14",
3
+ "version": "1.3.15",
4
4
  "description": "TextMate grammar for Progress OpenEdge ABL Language",
5
5
  "main": "",
6
6
  "type": "commonjs",
@@ -222,3 +222,17 @@ describe('', () => {
222
222
  shared.itShouldMatchExpectedScopes(statement, expectedTokens);
223
223
  })
224
224
 
225
+ describe('UNC path, FQDN, and multiple dots in the filename', () => {
226
+ // see: https://github.com/vscode-abl/vscode-abl/issues/362
227
+ let statement = `{\\\\fileserver.corp.company.com\\shared\\data\\config.backup.2024.07.29.i &DEBUG=TRUE}`;
228
+ let expectedTokens = [
229
+ { "startIndex": 0, "endIndex": 1, "scopes": ["source.abl", "meta.include.abl", "punctuation.section.abl"] }, // '{'
230
+ { "startIndex": 1, "endIndex": 69, "scopes": ["source.abl", "meta.include.abl", "entity.name.include.abl"] }, // '\\fileserver.corp.company.com\shared\data\config.backup.2024.07.29.i'
231
+ { "startIndex": 69, "endIndex": 70, "scopes": ["source.abl", "meta.include.abl"] }, // ' '
232
+ { "startIndex": 70, "endIndex": 76, "scopes": ["source.abl", "meta.include.abl", "meta.include.argument.abl", "support.other.argument.abl"] }, // '&DEBUG'
233
+ { "startIndex": 76, "endIndex": 77, "scopes": ["source.abl", "meta.include.abl", "meta.include.argument.abl", "keyword.operator.source.abl"] }, // '='
234
+ { "startIndex": 77, "endIndex": 81, "scopes": ["source.abl", "meta.include.abl", "support.other.argument.abl"] }, // 'TRUE'
235
+ { "startIndex": 81, "endIndex": 82, "scopes": ["source.abl", "meta.include.abl", "punctuation.section.abl"] } // '}'
236
+ ];
237
+ shared.itShouldMatchExpectedScopes(statement, expectedTokens);
238
+ });