astro-ghostcms/.pnpm-store/v3/files/a1/879ef97f0c8e460b3b789b5c093...

28 lines
543 B
Plaintext
Raw Normal View History

2024-02-14 14:10:47 +00:00
import { WhiteSpace } from '../../tokenizer/index.js';
const SPACE = Object.freeze({
type: 'WhiteSpace',
loc: null,
value: ' '
});
export const name = 'WhiteSpace';
export const structure = {
value: String
};
export function parse() {
this.eat(WhiteSpace);
return SPACE;
// return {
// type: 'WhiteSpace',
// loc: this.getLocation(this.tokenStart, this.tokenEnd),
// value: this.consume(WHITESPACE)
// };
}
export function generate(node) {
this.token(WhiteSpace, node.value);
}