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

Summary: Supporting template literals
Product: javascript Reporter: Petr Pisl <ppisl>
Component: EditorAssignee: Petr Hejl <phejl>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: 8.2   
Hardware: PC   
OS: Linux   
Issue Type: TASK Exception Reporter:
Bug Depends on:    
Bug Blocks: 242387    
Attachments: Custom interpolation in template literals

Description Petr Pisl 2016-04-05 12:03:58 UTC
Ecma 6 Script introduces template literals : https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/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
Done.