Comparing version 0.0.6 to 0.0.7
{ | ||
"name": "cbml", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"description": "CBML Parser", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/cbml/cbmljs", |
@@ -7,3 +7,5 @@ # [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] | ||
```json | ||
 | ||
```js | ||
{ | ||
@@ -10,0 +12,0 @@ "type": "block", // token type : "text" | "block" | "single" |
@@ -111,3 +111,3 @@ (function (exportName) { | ||
var match = S.text.substring(S.pos).match( | ||
/(<!--|\/\*<|\(\*<|'''<|--\[\[<)(\/?)([\w_-]+)\s*|(<\/)([\w_-]+)(>\*\/|>\*\)|>'''|>\]\]|-->)/ | ||
/(<!--|\/\*<|\(\*<|'''<|--\[\[<)(\/?)([\w_]+[\w_-]*[\w_]|[\w_]+)\s*|(<\/)([\w_]+[\w_-]*[\w_]|[\w_]+)(>\*\/|>\*\)|>'''|>\]\]|-->)/ | ||
); | ||
@@ -118,2 +118,3 @@ | ||
} | ||
pushToken('text', S.pos, S.pos + match.index); // 记录 text | ||
@@ -203,3 +204,3 @@ | ||
match = S.text.substring(S.pos + offset).match( | ||
/^\s*([\w_-]+)\s*/ | ||
/^\s*([\w_]+[\w_-]*[\w_]|[\w_]+)\s*/ | ||
); | ||
@@ -253,2 +254,3 @@ if (!match) { | ||
); | ||
if (!match) { | ||
@@ -255,0 +257,0 @@ |
13551
56