Skip to content

Commit

Permalink
Add RegExp 'global' option to Russian grammar rules
Browse files Browse the repository at this point in the history
  • Loading branch information
yuryleb committed Apr 27, 2018
1 parent c3b3ab6 commit 40425fa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion languages/grammar/ru.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"meta": {
"regExpFlags": ""
"regExpFlags": "g"
},
"v5": {
"accusative": [
Expand Down
2 changes: 2 additions & 0 deletions test/grammar_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,8 @@ tape.test('verify grammar files structure', function(assert) {
Object.keys(languages.grammars).forEach((l) => {
var grammar = languages.grammars[l];

assert.ok(grammar.meta.regExpFlags.includes('g'), l + ' grammar has "g" regexp option');

assert.ok(grammar.v5, l + ' grammar has v5 version');

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

0 comments on commit 40425fa

Please sign in to comment.