Bug 471252 - [editor] wrong highlighting of matching rule begin and end tokens
Summary: [editor] wrong highlighting of matching rule begin and end tokens
Status: NEW
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: 2.8.3   Edit
Hardware: PC Mac OS X
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2015-06-28 23:27 EDT by Knut Wannheden CLA
Modified: 2015-11-11 04:16 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Knut Wannheden CLA 2015-06-28 23:27:16 EDT
When a parser rule contains a qualified EClass reference (e.g. as part of an action or a cross-reference) the highlighting of the matching rule begin and rule end tokens is wrong: So when placing the cursor after the semicolon at the end of the rule, the editor will highlight the second colon part of the last qualified EClass reference instead of the colon following the parser rule name.

Example:

Foo:
  'foo' bar=[bar::Bar]
;

So when placing the cursor after ';' the ':' before "Bar" will be highlighted instead of the ':' after "Foo".
Comment 1 Sebastian Zarnekow CLA 2015-06-29 01:49:40 EDT
Let's see if someone steps up and provides a patch :)