Skip to content

Commit 6e282d6

Browse files
committed
Add RegExp 'global' option to Russian grammar rules
1 parent 6a77ef9 commit 6e282d6

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

languages/grammar/ru.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"meta": {
3-
"regExpFlags": ""
3+
"regExpFlags": "g"
44
},
55
"v5": {
66
"accusative": [

test/grammar_test.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -489,6 +489,8 @@ tape.test('verify grammar files structure', function(assert) {
489489
Object.keys(languages.grammars).forEach((l) => {
490490
var grammar = languages.grammars[l];
491491

492+
assert.ok(grammar.meta.regExpFlags.includes('g'), l + ' grammar has "g" regexp option');
493+
492494
assert.ok(grammar.v5, l + ' grammar has v5 version');
493495

494496
Object.keys(grammar.v5).forEach((g) => {

0 commit comments

Comments
 (0)