Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

line-ending.js 810B

12345678910111213141516171819202122232425262728293031
  1. 'use strict'
  2. var assert = require('assert')
  3. var markdownLineEnding = require('../character/markdown-line-ending.js')
  4. var types = require('../constant/types.js')
  5. var factorySpace = require('./factory-space.js')
  6. function _interopDefaultLegacy(e) {
  7. return e && typeof e === 'object' && 'default' in e ? e : {default: e}
  8. }
  9. var assert__default = /*#__PURE__*/ _interopDefaultLegacy(assert)
  10. var lineEnding = {
  11. name: 'lineEnding',
  12. tokenize: tokenizeLineEnding
  13. }
  14. function tokenizeLineEnding(effects, ok) {
  15. return start
  16. function start(code) {
  17. assert__default['default'](markdownLineEnding(code), 'expected eol')
  18. effects.enter(types.lineEnding)
  19. effects.consume(code)
  20. effects.exit(types.lineEnding)
  21. return factorySpace(effects, ok, types.linePrefix)
  22. }
  23. }
  24. module.exports = lineEnding