This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 258654 - Supporting template literals
Summary: Supporting template literals
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.2
Hardware: PC Linux
: P2 normal (vote)
Assignee: Petr Hejl
Depends on:
Blocks: 242387
  Show dependency tree
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
Exception Reporter:

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