Bug 385233 - ASM Editor treats || as comment
Summary: ASM Editor treats || as comment
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-editor (show other bugs)
Version: 8.1.0   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-16 15:35 EDT by Patrick Chuong CLA
Modified: 2020-09-04 15:17 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Chuong CLA 2012-07-16 15:35:09 EDT
In the ASM editor, the symbol || is been treated as a comment. For our compiler, this symbol is a valid instruction. There needs to be a way to override this behavior.
Comment 1 Anton Leherbauer CLA 2012-07-17 02:58:23 EDT
One way to go is to define a new assembly content type (overriding the default one) and register your own document setup participant via extension point "org.eclipse.core.filebuffers.documentSetup" for this content type.
This gives you a chance to customize the document partitioning (AsmDocumentSetupParticipant).
Comment 2 Patrick Chuong CLA 2013-07-26 17:23:33 EDT
To reuse the AsmPartitionScanner class, is it possible to change the two static final String, NON_LINE_COMMENT_CHARS and KNOWN_LINE_END_COMMENT_CHARS to non-final? Or have a way to override the nextToken() method?