parent
8b43c8419f
commit
4b0f637626
|
@ -3,7 +3,6 @@
|
|||
"use strict";
|
||||
|
||||
const util = require( "../../util" );
|
||||
const VERSION = require( "../../version" );
|
||||
|
||||
// Generates parser JavaScript code.
|
||||
function generateJS( ast, session, options ) {
|
||||
|
@ -1594,7 +1593,7 @@ function generateJS( ast, session, options ) {
|
|||
|
||||
function generateHeaderComment() {
|
||||
|
||||
let comment = `// Generated by PEG.js ${ VERSION }, https://pegjs.org/`;
|
||||
let comment = "// Generated by PEG.js v0.11.0-dev, https://pegjs.org/";
|
||||
const header = options.header;
|
||||
|
||||
if ( typeof header === "string" ) {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Generated by PEG.js 0.11.0-dev, https://pegjs.org/
|
||||
// Generated by PEG.js v0.11.0-dev, https://pegjs.org/
|
||||
|
||||
/* eslint-disable */
|
||||
|
||||
|
|
|
@ -5,11 +5,10 @@ const ast = require( "./ast" );
|
|||
const compiler = require( "./compiler" );
|
||||
const parser = require( "./parser" );
|
||||
const util = require( "./util" );
|
||||
const VERSION = require( "./version" );
|
||||
|
||||
const peg = {
|
||||
// PEG.js version (uses semantic versioning).
|
||||
VERSION: VERSION,
|
||||
VERSION: "0.11.0-dev",
|
||||
|
||||
GrammarError: GrammarError,
|
||||
ast: ast,
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
"use strict";
|
||||
|
||||
/**
|
||||
* PEG.js version (uses semantic versioning).
|
||||
*/
|
||||
const VERSION = "0.11.0-dev";
|
||||
|
||||
module.exports = VERSION;
|
6
packages/pegjs/typings/modules.d.ts
vendored
6
packages/pegjs/typings/modules.d.ts
vendored
|
@ -6,12 +6,6 @@ declare module "pegjs" {
|
|||
|
||||
}
|
||||
|
||||
declare module "pegjs/lib/version" {
|
||||
|
||||
export default peg.VERSION;
|
||||
|
||||
}
|
||||
|
||||
declare module "pegjs/lib/grammar-error" {
|
||||
|
||||
export default peg.GrammarError;
|
||||
|
|
Loading…
Reference in a new issue