Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 325729 - [Grammar Editor] Some quirks
Summary: [Grammar Editor] Some quirks
Status: CLOSED FIXED
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: 1.0.0   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 major (vote)
Target Milestone: M2   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 325815
Blocks:
  Show dependency tree
 
Reported: 2010-09-20 06:06 EDT by Sebastian Zarnekow CLA
Modified: 2017-09-19 16:06 EDT (History)
1 user (show)

See Also:
sebastian.zarnekow: indigo+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian Zarnekow CLA 2010-09-20 06:06:05 EDT
Entering "RuleName:" will automatically insert the closing ";". 
Completing the rule with (| == cursor position)
RuleName: name=ID|; 
and pressing enter will lead to
RuleName: name=ID
;;

=========

RuleName:|
  name=ID
;

Enter leads to

RuleName:
    |
;
  name=ID
;

=========
RuleName:
  ('[' value=ID)|
  (value2=ID ']')
;

Enter leads to
RuleName:
  ('[' value=ID)
    |
  (value2=ID ']')
;
Comment 1 Sebastian Zarnekow CLA 2010-09-20 06:09:06 EDT
Set severity to major as editing a grammar is hard.

Another quirk (>< indicates the selection:

RuleName:
  (>'<[' value=ID)
;

Entering double quotes leads to

RuleName:
  ("|"[' value=ID)
;

Expected:
RuleName:
  ("[' value=ID)
;

Removing the superflous doublequote and selecting the second singlequote to replace it by a double quote leads to:

RuleName:
  ("["|" value=ID)
;

which is unexpected as well.
Comment 2 Sebastian Zarnekow CLA 2010-09-20 07:38:47 EDT
Another issue (again | == cursor position):

RuleName:
  (
  |'a' 'b' &
  'c' 'd'
  )
;

Typing ( should only insert an opening brace.
Comment 3 Sven Efftinge CLA 2010-09-21 16:20:46 EDT
fixed
Comment 4 Karsten Thoms CLA 2017-09-19 16:06:32 EDT
Closing bug which were set to RESOLVED before Eclipse Neon.0.