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.
Summary: | HTML Lexer do not parse embeded sections as one token. | ||
---|---|---|---|
Product: | web | Reporter: | Jan Jancura <jjancura> |
Component: | HTML Editor | Assignee: | Marek Fukala <mfukala> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | CC: | jglick |
Priority: | P3 | ||
Version: | 5.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Bug Depends on: | 87014 | ||
Bug Blocks: |
Description
Jan Jancura
2007-04-27 15:44:02 UTC
*** Issue 102182 has been marked as a duplicate of this issue. *** The fix will have a not nice sideeffect - if someone forgets to use </script> end tag in his file, since the lexer after <script> will make everything a text until it finds </script>, the rest of the file from the open tag will be gray without any editing features. In such case I can also replace the dynamic embedding of the script tags by the static one. The same basically applies for CSS and others. Btw, the fix of issue #87014 would also help to resolve the following problems. I wont implement this issue until issue #87014 is resolved. Not critical, lowering priority. since it looks like resolution of issue #87014 can take longer time, I did a proposed workaround for <script> tag to check how it works. Checking in lexer/src/org/netbeans/lib/html/lexer/HTMLLexer.java; /cvs/html/lexer/src/org/netbeans/lib/html/lexer/HTMLLexer.java,v <-- HTMLLexer.java new revision: 1.16; previous revision: 1.15 done Checking in lexer/src/org/netbeans/api/html/lexer/HTMLTokenId.java; /cvs/html/lexer/src/org/netbeans/api/html/lexer/HTMLTokenId.java,v <-- HTMLTokenId.java new revision: 1.9; previous revision: 1.8 done Checking in editor/src/org/netbeans/modules/html/editor/coloring/EmbeddingUpdater.java; /cvs/html/editor/src/org/netbeans/modules/html/editor/coloring/EmbeddingUpdater.java,v <-- EmbeddingUpdater.java new revision: 1.7; previous revision: 1.6 done will be fixed in 6.0 FCS, the change is required because of some constraints in lexer. Read more in Issue #118892 - Allow Schlieman lexer to continuously lex embedded language over more tokens of its parent language fixed Checking in HTMLSyntaxSupport.java; /cvs/html/editor/lib/src/org/netbeans/editor/ext/html/HTMLSyntaxSupport.java,v <-- HTMLSyntaxSupport.java new revision: 1.38; previous revision: 1.37 done Checking in HTMLCompletionQuery.java; /cvs/html/editor/lib/src/org/netbeans/editor/ext/html/HTMLCompletionQuery.java,v <-- HTMLCompletionQuery.java new revision: 1.41; previous revision: 1.40 done oops, wrong files - the fix is: Checking in api/html/lexer/HTMLTokenId.java; /cvs/html/lexer/src/org/netbeans/api/html/lexer/HTMLTokenId.java,v <-- HTMLTokenId.java new revision: 1.12; previous revision: 1.11 done Checking in lib/html/lexer/HTMLLexer.java; /cvs/html/lexer/src/org/netbeans/lib/html/lexer/HTMLLexer.java,v <-- HTMLLexer.java new revision: 1.23; previous revision: 1.22 done |