123456789101112131415161718192021 |
- 'use strict'
-
- var factorySpace = require('./factory-space.js')
-
- var lineEnding = {
- name: 'lineEnding',
- tokenize: tokenizeLineEnding
- }
-
- function tokenizeLineEnding(effects, ok) {
- return start
-
- function start(code) {
- effects.enter('lineEnding')
- effects.consume(code)
- effects.exit('lineEnding')
- return factorySpace(effects, ok, 'linePrefix')
- }
- }
-
- module.exports = lineEnding
|