Permalink
Browse files

RESERVE 'tap'

  • Loading branch information...
shanebdavis committed Jan 21, 2019
1 parent 11b5146 commit dca3f6d6bff49e5ae2f4588361a176461eb115cb
Showing with 16 additions and 3 deletions.
  1. +1 −1 cafInCaf/CaffeineScript/Rules/Tokens.caf
  2. +1 −1 memleak.caf
  3. +1 −1 source/CaffeineScript/Rules/Tokens.js
  4. +13 −0 tests-to-add.md
@@ -113,7 +113,7 @@
| reduce | inject
| promise | await
| short | skip
| mixin
| mixin | tap

)

@@ -16,7 +16,7 @@ import &ArtSuite

i = 0
CafMc = require :caffeine-mc
CaffeineScript = require :caffeine-script
CaffeineScript = require :./index.coffee
&globPromise "cafInCaf/**/*.caf"
.then (files) ->
log "#{files.length} files"
@@ -18,7 +18,7 @@ Caf.defMod(module, () => {
_closeCurly: /\ *\}/,
_else: /(( *\n)+| +)else/,
ellipsis: "'...'",
reservedWord: /(import|true|false|null|undefined|global|require|module|eval|super|class|new|this|delete|instanceof|is|isnt|switch|when|then|else|if|until|while|unless|array|each|find|object|from|in|with|do|into|returning|with-key|to|by|til|try|catch|throw|and|or|not|extract|as|for|return|break|of|yes|on|no|off|typeof|reduce|inject|promise|await|short|skip|mixin)(-[a-z]+)*\b(?![-])/,
reservedWord: /(import|true|false|null|undefined|global|require|module|eval|super|class|new|this|delete|instanceof|is|isnt|switch|when|then|else|if|until|while|unless|array|each|find|object|from|in|with|do|into|returning|with-key|to|by|til|try|catch|throw|and|or|not|extract|as|for|return|break|of|yes|on|no|off|typeof|reduce|inject|promise|await|short|skip|mixin|tap)(-[a-z]+)*\b(?![-])/,
identifier: [
/(?!\d)((?!\s)[$\w\u007f-\uffff])+/,
{
@@ -1,3 +1,16 @@
# ToSort

```coffeescript
###
directory structure:
thisFile.caf
.DotSubdir/index.js
###
&DotSubdir
# Should generate: require('./.DotSubdir')
```

# Improvements
```coffeescript
{} a = b = 1

0 comments on commit dca3f6d

Please sign in to comment.