Skip to content

Commit

Permalink
Update tokentree
Browse files Browse the repository at this point in the history
  • Loading branch information
Gama11 committed Jul 18, 2020
1 parent 4199cbe commit 76319c4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions haxe_libraries/tokentree.hxml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
-D tokentree=1.0.24
# @install: lix --silent download "haxelib:/tokentree#1.0.24" into tokentree/1.0.24/haxelib
-cp ${HAXE_LIBCACHE}/tokentree/1.0.24/haxelib/src
-D tokentree=1.0.28
# @install: lix --silent download "gh://github.com/HaxeCheckstyle/tokentree#0b48308e5cec2daf8e721dc69835be1360272d8a" into tokentree/1.0.28/github/0b48308e5cec2daf8e721dc69835be1360272d8a
-cp ${HAXE_LIBCACHE}/tokentree/1.0.28/github/0b48308e5cec2daf8e721dc69835be1360272d8a/src
2 changes: 1 addition & 1 deletion src/features/vis/tokenTreeVis/TokenTreeContentProvider.hx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class TokenTreeContentProvider extends ContentProviderBase<TokenTree> {
tokens.push(t);
t = lexer.token(haxeparser.HaxeLexer.tok);
}
TokenStream.MODE = RELAXED;
TokenStream.MODE = Relaxed;
content = TokenTreeBuilder.buildTokenTree(tokens, bytes);
resolve(rerender());
} catch (e:Any) {
Expand Down
2 changes: 1 addition & 1 deletion src/features/vis/tokenTreeVis/TokenTreeVis.hx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class TokenTreeVis extends TreePrinterBase<TokenTree> {
case Const(CIdent(s)):
if (~/^[A-Z]/.match(s)) {
"type";
} else if (t.access().firstOf(POpen).exists()) {
} else if (t.access().firstOf(t -> t.match(POpen)).exists()) {
"function";
} else {
"ident";
Expand Down

0 comments on commit 76319c4

Please sign in to comment.