Skip to content

Commit d8ef3d5

Browse files
1 parent 59f449d commit d8ef3d5

10 files changed

+16
-33
lines changed

.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ module.exports = {
5656
'jsdoc/require-property-name': 'warn',
5757

5858
// regexp
59-
'regexp/no-assertion-capturing-group': 'error',
59+
'regexp/no-empty-capturing-group': 'error',
6060
'regexp/no-dupe-disjunctions': 'error',
6161
'regexp/no-empty-alternative': 'error',
6262
'regexp/no-empty-lookarounds-assertion': 'error',

components/prism-ftl.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@
8686
};
8787

8888
Prism.hooks.add('before-tokenize', function (env) {
89+
// eslint-disable-next-line regexp/no-useless-lazy
8990
var pattern = RegExp(/<#--[\s\S]*?-->|<\/?[#@][a-zA-Z](?:<expr>)*?>|\$\{(?:<expr>)*?\}/.source.replace(/<expr>/g, function () { return FTL_EXPR; }), 'gi');
9091
Prism.languages['markup-templating'].buildPlaceholders(env, 'ftl', pattern);
9192
});

components/prism-hoon.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ Prism.languages.hoon = {
1515
pattern: /"[^"]*"|'[^']*'/,
1616
greedy: true
1717
},
18-
'keyword': /:_|\.[\^\+\*=\?]|![><:\.=\?!]|=[>|:,\.\-\^<+;/~\*\?]|\?[>|:\.\-\^<\+&~=@!]|\|[\$_%:\.\-\^~\*=@\?]|\+[|\$\+\*]|:[_\-\^\+~\*]|%[_:\.\-\^\+~\*=]|\^[|:\.\-\+&~\*=\?]|\$[|_%:<>\-\^&~@=\?]|;[:<\+;\/~\*=]|~[>|\$_%<\+\/&=\?!]|--|==/
18+
'keyword': /\.[\^\+\*=\?]|![><:\.=\?!]|=[>|:,\.\-\^<+;/~\*\?]|\?[>|:\.\-\^<\+&~=@!]|\|[\$_%:\.\-\^~\*=@\?]|\+[|\$\+\*]|:[_\-\^\+~\*]|%[_:\.\-\^\+~\*=]|\^[|:\.\-\+&~\*=\?]|\$[|_%:<>\-\^&~@=\?]|;[:<\+;\/~\*=]|~[>|\$_%<\+\/&=\?!]|--|==/
1919
};

components/prism-hoon.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

components/prism-latte.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
if (env.language !== 'latte') {
5858
return;
5959
}
60-
var lattePattern = /\{\*[\s\S]*?\*\}|\{[^'"\s{}*](?:[^"'/{}]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|\/\*(?:[^*]|\*(?!\/))*\*\/)*?\}/g;
60+
var lattePattern = /\{\*[\s\S]*?\*\}|\{[^'"\s{}*](?:[^"'/{}]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|\/\*(?:[^*]|\*(?!\/))*\*\/)*\}/g;
6161
Prism.languages['markup-templating'].buildPlaceholders(env, 'latte', lattePattern);
6262
env.grammar = markupLatte;
6363
});

components/prism-latte.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

components/prism-lisp.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
// Symbol name. See https://www.gnu.org/software/emacs/manual/html_node/elisp/Symbol-Type.html
1616
// & and : are excluded as they are usually used for special purposes
17-
var symbol = '[-+*/_~!@$%^=<>{}\\w]+';
17+
var symbol = '[-+*/~!@$%^=<>{}\\w]+';
1818
// symbol starting with & used in function arguments
1919
var marker = '&' + symbol;
2020
// Open parenthesis for look-behind

components/prism-lisp.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"docdash": "^1.2.0",
4040
"eslint": "^7.22.0",
4141
"eslint-plugin-jsdoc": "^32.3.0",
42-
"eslint-plugin-regexp": "^0.12.1",
42+
"eslint-plugin-regexp": "^1.0.0",
4343
"gulp": "^4.0.2",
4444
"gulp-concat": "^2.3.4",
4545
"gulp-header": "^2.0.7",

0 commit comments

Comments
 (0)