full site update
This commit is contained in:
12
node_modules/css-tree/lib/definition-syntax/SyntaxError.js
generated
vendored
Normal file
12
node_modules/css-tree/lib/definition-syntax/SyntaxError.js
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
import { createCustomError } from '../utils/create-custom-error.js';
|
||||
|
||||
export function SyntaxError(message, input, offset) {
|
||||
return Object.assign(createCustomError('SyntaxError', message), {
|
||||
input,
|
||||
offset,
|
||||
rawMessage: message,
|
||||
message: message + '\n' +
|
||||
' ' + input + '\n' +
|
||||
'--' + new Array((offset || input.length) + 1).join('-') + '^'
|
||||
});
|
||||
};
|
Reference in New Issue
Block a user