refactor: Still trying to reorganize edit mode to be more robust
This commit is contained in:
parent
85faf502c4
commit
c5a5b26797
487 changed files with 94669 additions and 144 deletions
16
node_modules/css-tree/cjs/definition-syntax/SyntaxError.cjs
generated
vendored
Normal file
16
node_modules/css-tree/cjs/definition-syntax/SyntaxError.cjs
generated
vendored
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
'use strict';
|
||||
|
||||
const createCustomError = require('../utils/create-custom-error.cjs');
|
||||
|
||||
function SyntaxError(message, input, offset) {
|
||||
return Object.assign(createCustomError.createCustomError('SyntaxError', message), {
|
||||
input,
|
||||
offset,
|
||||
rawMessage: message,
|
||||
message: message + '\n' +
|
||||
' ' + input + '\n' +
|
||||
'--' + new Array((offset || input.length) + 1).join('-') + '^'
|
||||
});
|
||||
}
|
||||
|
||||
exports.SyntaxError = SyntaxError;
|
||||
Loading…
Add table
Add a link
Reference in a new issue