AdguardTeam / AdguardTeam/VscodeAdblockSyntax

More thorough testing of TMLanguage

オープン
#133 コメント 1 件 リアクション 0 件 担当者 1 名 @maximtop が担当を希望しています GitHub で見る
Priority: P4
主要言語
TypeScript
スター
88
フォーク
8
PR マージ指標
30日以内にマージされた PR はありません

説明

Tester should throw an error if the TMLanguage file is not structured correctly or if any regular expression is syntactically incorrect.
For both scenarios, the error message should be explicit and include the specific location of the error, indicated by row and column numbers.

In practice, incorrect TMLanguage is usually simply ignored and tokenization does not work.

For details on the TMLanguage structure, refer to: https://macromates.com/manual/en/language_grammars

Here's an example of an invalid regular expression:
```yaml
match: |-
(?x)
(##) # we often match separators, but in this case, first # in the separator considered as a comment - so we got an unbalanced parenthesis error
```

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。