Граф коммитов

63 Коммитов

Автор SHA1 Сообщение Дата
Alexandru Dima 09effd8b74
Remove unused fixtures (fixes CodeQL warning) (#223) 2024-01-08 11:07:50 +01:00
Raymond Zhao 33a62b6673
fix: fix CodeQL issues (#222) 2023-12-18 18:38:28 +01:00
Raymond Zhao 8b07a3c2be
Fix PoliCheck issues (#212) 2023-09-18 11:29:35 -07:00
Alex Dima 677f741f5b
CRLF -> LF 2022-02-04 14:21:30 +01:00
msftrncs 30759cc5cc Provide test for #147
Implements a test for issue #147, to insure that multiple substitutions
on a single scope specification are handled.
2021-02-27 01:48:42 -06:00
msftrncs 0906b05c84 implement a test pattern for issue #145 2021-01-23 22:05:30 -06:00
Alex Dima 195943d68d
Breaking change: The oniguruma library must be passed in by the consumer 2020-04-22 14:39:14 +02:00
Alexandru Dima efe5c122f9
Fixes #119: Have \G hold at the beginning of a new line if the previous line's \n has been captured 2019-11-19 18:03:25 +01:00
Martin Aeschlimann 9247e5af16 update onigasm (fix php issue) 2019-11-12 22:44:22 +01:00
Alex Dima d7c7996115 Fixes #105: Handle rules containing only include 2019-08-16 10:42:18 +02:00
Alex Dima 7640bd6490 Fixes #66 2019-07-12 15:42:52 +02:00
Alex Dima d9590f91ef Simplify themes test running 2019-07-12 11:00:32 +02:00
Alex Dima be760012ad Fix broken test 2019-07-12 10:10:12 +02:00
Alex Dima f8dc515b09 Merge remote-tracking branch 'origin/master' into pr/msftrncs/86 2019-04-04 17:34:04 +02:00
Alex Dima 95bb619096 Add test for #22, remove old broken test 2019-04-04 17:00:17 +02:00
Alex Dima a0a5131907 Capture anchor position when pushing and restore it when popping (fixes #82) 2019-04-04 12:25:54 +02:00
Martin Aeschlimann 4044ff682e fix tests 2018-06-16 00:13:37 +02:00
Martin Aeschlimann c4fb99b198 use oniguruma as the default onigLib 2018-06-15 16:33:56 +02:00
Martin Aeschlimann 328296ff39 tests, benchmarks & dispose OnigString 2018-06-14 10:21:01 +02:00
Martin Aeschlimann dc6240f216 add test for #46 2017-05-19 15:35:35 +02:00
Alex Dima 424d3605ee Merge branch 'master' into next
# Conflicts:
#	src/json.ts
2017-01-03 11:18:15 +02:00
Martin Aeschlimann 96fc5e52da Injections: Priority match not working. Fixes Microsoft/vscode#15792 2016-12-08 16:31:28 +01:00
Martin Aeschlimann 218fccf301 Simplify dark/light plus themes 2016-12-01 11:17:34 +01:00
Martin Aeschlimann 306160f03e Fixes for entity.name.type & entity.name.class 2016-12-01 10:18:04 +01:00
Alex Dima a14320b1b2 Adopt new scope matching rules in themes 2016-11-29 19:29:16 +01:00
Alex Dima 15debdd1c9 Children inherit parentScopes 2016-11-25 14:00:12 -08:00
Alex Dima a29f38bf32 More test tools 2016-11-24 12:29:37 -08:00
Alex Dima 8e4fb9a57d Accomodate for name/contentName containing multiple scopes 2016-11-17 15:16:40 -08:00
Alex Dima 103f4cb88c Import tests 2016-11-17 09:13:36 -08:00
Alex Dima 0a11647331 initial theme tests 2016-11-15 18:16:05 -08:00
Alex Dima 975e2e3fad Initial tests 2016-11-15 18:14:25 -08:00
Alex Dima c69bc54207 safepoint 2016-11-10 23:32:52 +01:00
Matt Bierner 1f6e14367b Fix While Rules That Use Anchor
**Bug**
In testing the while rules, I found that the while patterns themselves do not handle `\G` anchors at all. See the update unit tests for an example of a grammar that users these.

**Fix**
Two fixes:

* When compiling the while rule, use the standard logic to determine if we are starting from a previous match.
* Correct handling of isFirstLine within while rules to be updated when the rule is advanced.
2016-10-27 18:06:30 -07:00
Matt Bierner 67649c2826 Add test for captures in whileCondition 2016-09-26 14:41:18 -07:00
Matt Bierner 3ce91e5997 Fix anchor not being set by consuming while rules. Fix token production for while captures. 2016-09-26 14:37:19 -07:00
Matt Bierner 275ed31790 Improve Behavior of While to More Closely Match TextMate
Issue #25

Updates while rule conditions to have be run once for each new line, from bottom of the stack to the top of the stack. This matches what I believe text mate does.

Closes #25
2016-09-26 11:15:03 -07:00
Matt Bierner 749f45e5b2 Update existing tests 2016-09-22 15:57:46 -07:00
Matt Bierner 96e800aaf2 Fix tabs in one file 2016-09-20 15:30:22 -07:00
Matt Bierner 04965a83fa Fix While Clause Being Checked Inside of Lines
**Bug**
In VS Code in the markdown grammar, we see some grammar rules that use `while` stop matching early on the second line of the rule (the line after the begin). The root cause is that the while check clause is being evaluated on both on the start of the second line, and after the first match on the second line.

**Fix**
The while expression should only be checked on lines to determine if the line should be matched or not. Once a line has been matched with while, the entire line becomes part of the group. This fix adds a second condition to the while check so that we only apply it when starting a line.

I also added a simple grammar to test this behavior. It failed to match properly before, but does work properly after the fix.
2016-09-20 15:23:47 -07:00
Alex Dima b170e3e2fd Fixes #10: Ignore captures without a scope name 2016-08-17 17:02:40 +02:00
Alex Dima 2e56f612f3 Fixes #17: Don't stop tokenizing a line just because we are at its end 2016-08-17 16:34:18 +02:00
Alex Dima b06e7d8fb8 Run tests with mocha 2016-08-17 15:49:52 +02:00
Alex Dima e3c6e74722 Remove parser fixtures 2016-08-17 11:32:16 +02:00
Alex Dima 7a8499de90 Add fast plist parser (exposed via useExperimentalParser optional argument) 2016-06-30 18:49:43 +02:00
Alex Dima 8b9f58ff2c Fixes #12: Handle differently loop case 1, improve tests and test runner 2016-05-23 15:14:28 +02:00
Alexandru Dima b14ff75250 Merge pull request #14 from Microsoft/kieferrm/support-while
Support for grammars with begin/while rules
2016-05-23 10:58:17 +02:00
kieferrm 61f32a2f44 support begin/while rules 2016-05-18 12:38:26 -07:00
Martin Aeschlimann 6b55824993 Support external injections 2016-05-12 20:32:55 +02:00
Alex Dima 86bf546236 fixes #8 2015-11-30 16:22:03 +01:00
Alex Dima e901b07f10 fixes #7 2015-11-25 17:32:44 +01:00