Erster Docker-Stand
This commit is contained in:
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;
|
||||
Reference in New Issue
Block a user