Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 258654 - Supporting template literals
Supporting template literals
Product: javascript
Classification: Unclassified
Component: Editor
PC Linux
: P2 (vote)
: 8.2
Assigned To: Petr Hejl
Depends on:
Blocks: 242387
  Show dependency treegraph
Reported: 2016-04-05 12:03 UTC by Petr Pisl
Modified: 2016-04-13 15:00 UTC (History)
0 users

See Also:
Issue Type: TASK

Custom interpolation in template literals (98.59 KB, image/png)
2016-04-05 12:07 UTC, Petr Pisl

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Pisl 2016-04-05 12:03:58 UTC
Ecma 6 Script introduces template literals : Netbeans has to support it.
Comment 1 Petr Pisl 2016-04-05 12:07:47 UTC
Created attachment 159119 [details]
Custom interpolation in template literals

Template literals are now handled correctly in the coloring lexer, code completion works in the template expressions. Mark occurrences works correctly as well.
Comment 2 Petr Pisl 2016-04-05 12:09:53 UTC
The coloring lexer is done. Probably the delimiter should be bold to be consistent with other expressions delimiters used in jsp, php etc. 

There is still one problem with the lexer in parser. It doesn't allow correctly write content of expressions.
Comment 3 Petr Hejl 2016-04-05 20:16:52 UTC
-delimiter is now bold
-hopefully lexer in parser should not throw assertions anymore

Things to do:
-quote completion
-bracket matching for template expression
Comment 4 Petr Pisl 2016-04-06 09:25:58 UTC
Thanks, it looks much better.
Comment 5 Petr Pisl 2016-04-13 08:51:17 UTC
Can we close this task?
Comment 6 Petr Hejl 2016-04-13 13:14:30 UTC
Bracket matching is done.
Comment 7 Petr Hejl 2016-04-13 15:00:36 UTC

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo