Skip to content

Commit ba6e602

Browse files
Update reserved keywords
1 parent 098a181 commit ba6e602

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "eft-parser",
3-
"version": "0.5.6",
3+
"version": "0.5.7",
44
"description": "ef.js template parser",
55
"main": "dist/eft-parser.min.js",
66
"module": "src/eft-parser.js",

src/eft-parser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import ESCAPE from './escape-parser.js'
22

33
const typeSymbols = '>#%@.-+'.split('')
4-
const reserved = 'before after parent data element refs methods mount umount subscribe unsubscribe update destroy'.split(' ').map(i => `$${i}`)
4+
const reserved = '$before $after $parent $key $data $element $refs $methods $mount $umount $subscribe $unsubscribe $update $destroy __DIRECTMOUNT__'.split(' ')
55
const mustache = /\{\{.+?\}\}/g
66
const spaceIndent = /^(\t*)( *).*/
77
const hashref = /#([^}]|}[^}])*$/

0 commit comments

Comments
 (0)