Skip to content

Commit a71f6b6

Browse files
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 patterns
1 parent 5586dfc commit a71f6b6

15 files changed

Lines changed: 1924 additions & 333 deletions

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,6 @@ out
1111
!.vscode/extensions.json
1212
!.vscode/launch.json
1313
!.vscode/tasks.json
14+
15+
# Integration test temporary files
16+
syntaxes/test/.temp

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,22 @@ The format is based on [Keep a Changelog], and this project adheres to [Semantic
77
[Keep a Changelog]: https://keepachangelog.com/en/1.0.0/
88
[Semantic Versioning]: https://semver.org/spec/v2.0.0.html
99

10+
## Unreleased
11+
12+
### Changed
13+
14+
- Improved syntax highlighting for network rules and modifiers [#93], [#120], [#131], [#137].
15+
16+
### Fixed
17+
18+
- Highlighting for cosmetic rules modifiers [#134], [#151].
19+
20+
[#120]: https://github.com/AdguardTeam/VscodeAdblockSyntax/issues/120
21+
[#131]: https://github.com/AdguardTeam/VscodeAdblockSyntax/issues/131
22+
[#134]: https://github.com/AdguardTeam/VscodeAdblockSyntax/issues/134
23+
[#137]: https://github.com/AdguardTeam/VscodeAdblockSyntax/issues/137
24+
[#151]: https://github.com/AdguardTeam/VscodeAdblockSyntax/issues/151
25+
1026
## [2.1.4] (prerelease) - 2025-12-26
1127

1228
### Added

pnpm-lock.yaml

Lines changed: 57 additions & 118 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)