Open Bug 1366393 Opened 8 years ago Updated 3 years ago

Debugger wrongly highlights code

Categories

(DevTools :: Source Editor, defect)

defect

Tracking

(Not tracked)

UNCONFIRMED

People

(Reporter: guest161373, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36 Steps to reproduce: All of the following // Spread operator before regex [.../\//]; // Void before regex void/\//; // A regex in do...while loop do/\// while(0); // A regex in if..else statement if(0);else/\//; // Template literals ecaping sequence `${1}//`; code patterns are hghlighted like a comments, while they should be regexes. Except the last one, which is template literal, but it is highlighted like a comment too. Actual results: When opened in Web Debugger (Firefox's developer tool), these codes (and the rest of the line) are highlighted like comments. Expected results: It should be highlighted like a regex (except the last one which is a template literal string).
Component: Untriaged → Developer Tools: Debugger
Component: Developer Tools: Debugger → Developer Tools: Source Editor
Product: Firefox → DevTools
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.