Commit a71f6b6
committed
AG-27566, AG-36042, AG-31284, AG-27479, AG-45014, AG-33605 Improve syntax highlighting for modifiers
Squashed commit of the following:
commit 25ed0e5
Author: scripthunter7 <d.tota@adguard.com>
Date: Thu Jan 22 11:34:17 2026 +0100
Refactor integration test to improve code style consistency
- Change single-line continue statement to multi-line format to match project code style
commit 8e47d5c
Author: scripthunter7 <d.tota@adguard.com>
Date: Wed Jan 21 22:49:16 2026 +0100
Add comprehensive tests for cosmetic rules modifiers and update changelog
- Add new test file for AdGuard cosmetic rules modifiers with tests for path, domain, and app modifiers
- Add tests for multiple modifiers, different rule types, and scriptlet rules
- Add test for invalid modifier handling
- Add test rules for domain modifier with regex patterns and scriptlet rules with path modifier
- Update changelog to include cosmetic rules modifiers in improved syntax highlighting
commit 5a86b28
Author: scripthunter7 <d.tota@adguard.com>
Date: Wed Jan 21 22:40:49 2026 +0100
Fix modifier separator finding
commit 3867a34
Author: scripthunter7 <d.tota@adguard.com>
Date: Wed Jan 21 22:32:34 2026 +0100
Improve syntax highlighting
commit 5aded18
Author: scripthunter7 <d.tota@adguard.com>
Date: Wed Jan 21 22:14:39 2026 +0100
Refactor integration test to use fs-extra and improve code organization
- Replace node:fs with fs-extra for better async file operations
- Move sources configuration to top-level constant
- Add comprehensive JSDoc comments for InvalidToken interface
- Replace fs.mkdirSync with fs.ensureDir for async directory creation
- Replace fs.readFileSync with fs.readFile for async file reading
- Improve code structure and readability
commit 447cb66
Author: scripthunter7 <d.tota@adguard.com>
Date: Wed Jan 21 21:46:14 2026 +0100
Update changelog
commit 3996ec8
Author: scripthunter7 <d.tota@adguard.com>
Date: Wed Jan 21 21:45:31 2026 +0100
Update test rules
commit f0d54cd
Author: scripthunter7 <d.tota@adguard.com>
Date: Wed Jan 21 21:39:08 2026 +0100
Update tmlanuage
commit acfe2be
Author: scripthunter7 <d.tota@adguard.com>
Date: Wed Jan 21 20:36:29 2026 +0100
Add generic network rule highlighting and integration test infrastructure
- Add generic network rule syntax highlighting support [#120]
- Add .temp directory to .gitignore for integration test temporary files
- Add tar, chalk, and fast-glob dependencies to workspace catalog
- Update CHANGELOG.md with unreleased changes for generic network rule highlighting
- Refactor adblock.yaml-tmlanguage to improve cosmetic rule pattern matching with better regex handling for options containing brackets
- Add comprehensive tests for network rules
- Added integration tests
- Enhanced test matcher to show expected vs actual values in failures
- Added better error logging in OnigScanner for invalid patterns1 parent 5586dfc commit a71f6b6
15 files changed
Lines changed: 1924 additions & 333 deletions
File tree
- syntaxes
- test
- adblock
- cosmetic
- network
- setup/custom-matchers
- utils
- test/static/rules
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
10 | 26 | | |
11 | 27 | | |
12 | 28 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments