Skip to content

Commit

Permalink
v.3.0.0 (typo change)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikos M committed Mar 24, 2016
1 parent a1e1650 commit 904918a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion build/codemirror_grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -1245,7 +1245,7 @@ function generate_autocompletion( token, follows )
{
follows.push.apply( follows, tok.autocompletions );
}
else if ( (T_STR === tok.token.ptype) && (tok.token.pattern.length > 1) )
else if ( (T_STR === tok.token.ptype) && (T_STR&get_type(tok.token.pattern)) && (tok.token.pattern.length > 1) )
{
follows.push( {word:''+tok.token.pattern, meta:tok.name, ci:!!tok.ci} );
}
Expand Down Expand Up @@ -3787,6 +3787,7 @@ var CodeMirrorParser = Class(Parser, {
else
{
wm = word.meta;
if ( wl+wm.length > maxlen ) maxlen = wl+wm.length;
list.push({
text: w, name: w, meta: wm,
start: 0, end: 0, match: '',
Expand Down
4 changes: 2 additions & 2 deletions build/codemirror_grammar.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion editor-grammar
Submodule editor-grammar updated 1 files
+1 −1 src/helpers.js
1 change: 1 addition & 0 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ var CodeMirrorParser = Class(Parser, {
else
{
wm = word.meta;
if ( wl+wm.length > maxlen ) maxlen = wl+wm.length;
list.push({
text: w, name: w, meta: wm,
start: 0, end: 0, match: '',
Expand Down

0 comments on commit 904918a

Please sign in to comment.