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 115136 - *Fortran* An identifiers cannot be recognized as keywords within expressions
Summary: *Fortran* An identifiers cannot be recognized as keywords within expressions
Status: NEW
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker with 1 vote (vote)
Assignee: issues@cnd
URL:
Keywords:
Depends on: 174430
Blocks:
  Show dependency tree
 
Reported: 2007-09-10 11:01 UTC by Alexey Shubin
Modified: 2013-05-07 11:21 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Shubin 2007-09-10 11:01:25 UTC
Expressions cannot contain keywords (excluding those for logical operations) therefore identifiers must not neither
recognized nor highlighted as keywords

Cite from Fortran 3002 grammar

R701  primary is constant
             or designator
             or array-constructor
             or structure-constructor
             or function-reference
             or type-param-inquiry
             or type-param-name
             or ( expr )
R702  level-1-expr                  is [ defined-unary-op ] primary
R703  defined-unary-op              is . letter [ letter ] ... .
R704  mult-operand                  is level-1-expr [ power-op mult-operand ]
R705  add-operand                   is [ add-operand mult-op ] mult-operand
R706  level-2-expr                  is [ [ level-2-expr ] add-op ] add-operand
R707  power-op                      is **
R708  mult-op                       is *
                                    or /
R709  add-op                        is +
                                    or –
R710  level-3-expr                  is [ level-3-expr concat-op ] level-2-expr
R711  concat-op                     is //
R712  level-4-expr                  is [ level-3-expr rel-op ] level-3-expr
R713  rel-op                        is .EQ.
                                    or .NE.
                                    or .LT.
                                    or .LE.
                                    or .GT.
                                    or .GE.
                                    or ==
                                    or /=
                                    or <
                                    or <=
                                    or >
                                    or >=
R714  and-operand                   is [ not-op ] level-4-expr
R715  or-operand                    is [ or-operand and-op ] and-operand
R716  equiv-operand                 is [ equiv-operand or-op ] or-operand
R717  level-5-expr                  is [ level-5-expr equiv-op ] equiv-operand
R718  not-op                        is .NOT.
R719  and-op                        is .AND.
R720  or-op                         is .OR.
R721  equiv-op                      is .EQV.
                                    or .NEQV.
R722  expr                          is [ expr defined-binary-op ] level-5-expr
R723  defined-binary-op              is . letter [ letter ] ... .
Comment 1 nnnnnk 2010-02-17 11:37:46 UTC
Could you provide simple code example.

Actually it's hard do detect expressions, because we highlight keywords after lexing.