Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 485362

Summary: [HTML] Missing-nls warnings won't go away after adding newline outside of script block
Product: [ECD] Orion Reporter: Curtis Windatt <curtis.windatt.public>
Component: JS ToolsAssignee: Curtis Windatt <curtis.windatt.public>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: Michael_Rennie
Version: 10.0   
Target Milestone: 11.0   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Curtis Windatt CLA 2016-01-07 10:58:15 EST
<script>
a = "foo"; //$NON-NLS-1$
</script>

Create an HTML file with the above contents.  There should be no warnings.

Add a newline at the top of the file. Now a missing-nls warning shows up.
Comment 1 Curtis Windatt CLA 2016-01-07 11:42:31 EST
The problem is the sourceline map we look up to find the //NON-NLS tags includes the entire HTML file, not just the JS contents from the CU.