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 262439 - No easy way to rerun lexer
Summary: No easy way to rerun lexer
Status: NEW
Alias: None
Product: editor
Classification: Unclassified
Component: Lexer (show other bugs)
Version: 8.2
Hardware: All All
: P3 normal (vote)
Assignee: Miloslav Metelka
Depends on:
Blocks: 262653
  Show dependency tree
Reported: 2016-06-15 08:17 UTC by Tomas Mysik
Modified: 2016-07-26 16:08 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Mysik 2016-06-15 08:17:21 UTC
In PHP, there is a possibility to use short (<?) and ASP (<%) tags next to the standard PHP tags (<?php). These short and ASP tags are deprecated but a lot of (legacy) projects still use it, of course. Therefore we need to handle it correctly in PHP lexer - in Project Properties, we have options for it and we need to read this option for every source. This can, of course, cause performance problems since we need to find project for every file and read its properties.

It would be nice if we could simply use the default settings (which would be OK in most of the cases) and (on background) check whether these options in the given project are not different; if they are, we would just somehow force rerun of the "current" lexer.

Maybe this is more an enhancement. Thanks!