Initial commit
This commit is contained in:
commit
b3a51a4115
10336 changed files with 2381973 additions and 0 deletions
12
node_modules/zeptomatch/dist/normalize/grammar.js
generated
vendored
Normal file
12
node_modules/zeptomatch/dist/normalize/grammar.js
generated
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
/* IMPORT */
|
||||
import { match, or, star } from 'grammex';
|
||||
import { identity } from '../utils.js';
|
||||
/* MAIN */
|
||||
const Escaped = match(/\\./, identity);
|
||||
const Passthrough = match(/./, identity);
|
||||
const StarStarStar = match(/\*\*\*+/, '*');
|
||||
const StarStarNoLeft = match(/([^/{[(!])\*\*/, (_, $1) => `${$1}*`);
|
||||
const StarStarNoRight = match(/(^|.)\*\*(?=[^*/)\]}])/, (_, $1) => `${$1}*`);
|
||||
const Grammar = star(or([Escaped, StarStarStar, StarStarNoLeft, StarStarNoRight, Passthrough]));
|
||||
/* EXPORT */
|
||||
export default Grammar;
|
||||
Loading…
Add table
Add a link
Reference in a new issue