Skip to content

Commit

Permalink
Updated eslint-plugin-regexp@1.0.0 (#3037)
Browse files Browse the repository at this point in the history
  • Loading branch information
RunDevelopment committed Aug 15, 2021
1 parent 59f449d commit d8ef3d5
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 33 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js
Expand Up @@ -56,7 +56,7 @@ module.exports = {
'jsdoc/require-property-name': 'warn',

// regexp
'regexp/no-assertion-capturing-group': 'error',
'regexp/no-empty-capturing-group': 'error',
'regexp/no-dupe-disjunctions': 'error',
'regexp/no-empty-alternative': 'error',
'regexp/no-empty-lookarounds-assertion': 'error',
Expand Down
1 change: 1 addition & 0 deletions components/prism-ftl.js
Expand Up @@ -86,6 +86,7 @@
};

Prism.hooks.add('before-tokenize', function (env) {
// eslint-disable-next-line regexp/no-useless-lazy
var pattern = RegExp(/<#--[\s\S]*?-->|<\/?[#@][a-zA-Z](?:<expr>)*?>|\$\{(?:<expr>)*?\}/.source.replace(/<expr>/g, function () { return FTL_EXPR; }), 'gi');
Prism.languages['markup-templating'].buildPlaceholders(env, 'ftl', pattern);
});
Expand Down
2 changes: 1 addition & 1 deletion components/prism-hoon.js
Expand Up @@ -15,5 +15,5 @@ Prism.languages.hoon = {
pattern: /"[^"]*"|'[^']*'/,
greedy: true
},
'keyword': /:_|\.[\^\+\*=\?]|![><:\.=\?!]|=[>|:,\.\-\^<+;/~\*\?]|\?[>|:\.\-\^<\+&~=@!]|\|[\$_%:\.\-\^~\*=@\?]|\+[|\$\+\*]|:[_\-\^\+~\*]|%[_:\.\-\^\+~\*=]|\^[|:\.\-\+&~\*=\?]|\$[|_%:<>\-\^&~@=\?]|;[:<\+;\/~\*=]|~[>|\$_%<\+\/&=\?!]|--|==/
'keyword': /\.[\^\+\*=\?]|![><:\.=\?!]|=[>|:,\.\-\^<+;/~\*\?]|\?[>|:\.\-\^<\+&~=@!]|\|[\$_%:\.\-\^~\*=@\?]|\+[|\$\+\*]|:[_\-\^\+~\*]|%[_:\.\-\^\+~\*=]|\^[|:\.\-\+&~\*=\?]|\$[|_%:<>\-\^&~@=\?]|;[:<\+;\/~\*=]|~[>|\$_%<\+\/&=\?!]|--|==/
};
2 changes: 1 addition & 1 deletion components/prism-hoon.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion components/prism-latte.js
Expand Up @@ -57,7 +57,7 @@
if (env.language !== 'latte') {
return;
}
var lattePattern = /\{\*[\s\S]*?\*\}|\{[^'"\s{}*](?:[^"'/{}]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|\/\*(?:[^*]|\*(?!\/))*\*\/)*?\}/g;
var lattePattern = /\{\*[\s\S]*?\*\}|\{[^'"\s{}*](?:[^"'/{}]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|\/\*(?:[^*]|\*(?!\/))*\*\/)*\}/g;
Prism.languages['markup-templating'].buildPlaceholders(env, 'latte', lattePattern);
env.grammar = markupLatte;
});
Expand Down
2 changes: 1 addition & 1 deletion components/prism-latte.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion components/prism-lisp.js
Expand Up @@ -14,7 +14,7 @@

// Symbol name. See https://www.gnu.org/software/emacs/manual/html_node/elisp/Symbol-Type.html
// & and : are excluded as they are usually used for special purposes
var symbol = '[-+*/_~!@$%^=<>{}\\w]+';
var symbol = '[-+*/~!@$%^=<>{}\\w]+';
// symbol starting with & used in function arguments
var marker = '&' + symbol;
// Open parenthesis for look-behind
Expand Down
2 changes: 1 addition & 1 deletion components/prism-lisp.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 7 additions & 25 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -39,7 +39,7 @@
"docdash": "^1.2.0",
"eslint": "^7.22.0",
"eslint-plugin-jsdoc": "^32.3.0",
"eslint-plugin-regexp": "^0.12.1",
"eslint-plugin-regexp": "^1.0.0",
"gulp": "^4.0.2",
"gulp-concat": "^2.3.4",
"gulp-header": "^2.0.7",
Expand Down

0 comments on commit d8ef3d5

Please sign in to comment.