converting a regExPatternGroup to uppercase

SyntaxEditor for Windows Forms Forum

Posted 13 years ago by Karl Grambow
Avatar
I know that AutoCaseCorrect doesn't work for RegExPatternGroups but I was wondering if it is possible to convert specific tokens to uppercase, say in the PostParse of the SemanticParser?

I've got a couple of specific tokens that are in RegExPatternGroups and I'd like to get them to match the case of other tokens in explicit pattern groups.

Karl

Comments (2)

Posted 13 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
You'd have to probably start an undo group, make any case changes via Document.UndoableInsert and then end the undo group. Unfortunately this has the side effect of creating an undo item.


Actipro Software Support

Posted 13 years ago by Karl Grambow
Avatar
Thanks,

I'll have think about that. I've only got two tokens that I'd want to handle with autocase correct so it's just a question of weighing up whether it's worth creating an undo item for the sake of two tokens.

Karl
The latest build of this product (v2018.1 build 0341) was released 10 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.