Lines Matching refs:character
1 # character-parser
3 Parse JavaScript one character at a time to look for snippets in Templates. This is not a validato…
5 …/img.shields.io/travis/ForbesLindesay/character-parser/master.svg)](https://travis-ci.org/ForbesLi…
9 npm install character-parser
49 // This is the character-parser@1 default behavior.
83 start: 0,//index of first character of string
84 end: 13,//index of first character after the end of string
89 ### parseChar(character, state = defaultState())
91 …character and returns the state. See `parse` for the structure of the returned state object. N.B…
97 ### isPunctuator(character)
99 Returns `true` if `character` represents punctuation in JavaScript.
118 escaped: false, // true if in a string and the last character was an escape character
119 hasDollar: false, // true if in a template string and the last character was a dollar sign
123 lastChar: '' // last parsed character
141 All errors thrown by character-parser has a `code` property attached to it that allows one to ident…
145 In character-parser@2, we have changed the APIs quite a bit. These are some notes that will help yo…