Skip to content

Commit 17c3ce8

Browse files
committed
AG-41165 Add support for NOT_VALIDATE hint and update AGLint to v2.1.4
Squashed commit of the following: commit a9d4f00 Author: Adam Wróblewski <adam@adguard.com> Date: Mon Mar 31 17:12:23 2025 +0200 Add support for NOT_VALIDATE hint
1 parent 46b0074 commit 17c3ce8

File tree

5 files changed

+21
-7
lines changed

5 files changed

+21
-7
lines changed

CHANGELOG.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,19 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog][keepachangelog], and this project adheres to [Semantic Versioning][semver].
66

7+
## 1.1.16 - 2025-03-31
8+
9+
### Added
10+
11+
- Support for `NOT_VALIDATE` hint: [#147]
12+
13+
### Changed
14+
15+
- Updated integrated [AGLint] to v2.1.4
16+
717
## 1.1.15 - 2024-12-20
818

9-
## Changed
19+
### Changed
1020

1121
- Updated integrated [AGLint] to v2.1.3
1222

@@ -424,6 +434,7 @@ The format is based on [Keep a Changelog][keepachangelog], and this project adhe
424434
[#122]: https://github.com/AdguardTeam/VscodeAdblockSyntax/issues/122
425435
[#123]: https://github.com/AdguardTeam/VscodeAdblockSyntax/issues/123
426436
[#138]: https://github.com/AdguardTeam/VscodeAdblockSyntax/issues/138
437+
[#147]: https://github.com/AdguardTeam/VscodeAdblockSyntax/issues/147
427438
[AGLint]: https://github.com/AdguardTeam/AGLint/blob/master/CHANGELOG.md
428439
[keepachangelog]: https://keepachangelog.com/en/1.0.0/
429440
[semver]: https://semver.org/spec/v2.0.0.html

server/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"vscode-languageserver-textdocument": "^1.0.8"
1313
},
1414
"devDependencies": {
15-
"@adguard/aglint": "2.1.3",
15+
"@adguard/aglint": "2.1.4",
1616
"@types/clone-deep": "^4.0.1",
1717
"@types/semver": "^7.5.0",
1818
"clone-deep": "^4.0.1",

server/yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
# yarn lockfile v1
33

44

5-
"@adguard/aglint@2.1.3":
6-
version "2.1.3"
7-
resolved "https://registry.yarnpkg.com/@adguard/aglint/-/aglint-2.1.3.tgz#10d50d0d63fae0d1a306f1e4ededa146ef771b49"
8-
integrity sha512-n5GQ6cCblGuzNZHgonCmswMqWDUsct2uDAsSNtdD5oJCZZcALYLj8mD0PgyGRy2XpXkMjwU4gItO58I9Pyyq6w==
5+
"@adguard/aglint@2.1.4":
6+
version "2.1.4"
7+
resolved "https://registry.yarnpkg.com/@adguard/aglint/-/aglint-2.1.4.tgz#f7319ceeb42eedba78b94ab790295cad6003a89a"
8+
integrity sha512-ILnfKEPEc1GBqKSI00m08PSk2RY2Rt6ocHwUvE/uRFQ8BoF4EKaPrZEZzlGJuIG0YN+JB5U/Y95SqImwibmFng==
99
dependencies:
1010
"@adguard/agtree" "^2.3.0"
1111
"@adguard/ecss-tree" "^1.1.0"

syntaxes/adblock.yaml-tmlanguage

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ repository:
136136
"2":
137137
patterns:
138138
- name: keyword.control.hint.name
139-
match: "(NOT_OPTIMIZED|OPTIMIZED|PLATFORM|NOT_PLATFORM)"
139+
match: "(NOT_OPTIMIZED|OPTIMIZED|PLATFORM|NOT_PLATFORM|NOT_VALIDATE)"
140140
- name: constant.language.platform.name
141141
# The basic regexp is greedy and stops once it finds a match, so 'ext_chromium_mv3' should be before 'ext_chromium'
142142
match: "(windows|mac|android|ios|ext_chromium_mv3|ext_chromium|ext_ff|ext_edge|ext_opera|ext_ublock|ext_safari|ext_android_cb)"

test/static/rules/test_rules.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818
!#endif
1919
!+ NOT_OPTIMIZED PLATFORM(android)
2020
||example.org^
21+
! https://github.com/AdguardTeam/VscodeAdblockSyntax/issues/147
22+
!+ NOT_VALIDATE
23+
||example.org^$newmodifier
2124
! https://github.com/AdguardTeam/VscodeAdblockSyntax/issues/138
2225
!+ PLATFORM(ext_chromium_mv3)
2326
||example.com^

0 commit comments

Comments
 (0)