BertrandBev / code_field

A customizable code text field supporting syntax highlighting
https://bertrandbev.github.io/code_field/
MIT License
232 stars 61 forks source link

FormatException: Nothing to repeat #78

Closed t-m-z closed 1 year ago

t-m-z commented 1 year ago

I try to implement a Befunge-Interpreter. Hence I defined a Map<String, TextStyle> BEFUNGE_SYNTAX for the relevant syntax-Highlighting. The following code causes the FormatException: void initState() { super.initState(); _befungeGenerateController = TextEditingController(text: _currentGenerate); _befungeInterpretCodeController = CodeController( text: _currentInterpret, stringMap: BEFUNGE_SYNTAX, ); _inputController = TextEditingController(text: _currentInput); _codeGenerateController = TextEditingController(text: _sourceCodeGenerated); }

BertrandBev commented 1 year ago

Hi! I think that question would better be answered over at https://pub.dev/packages/flutter_highlight!

t-m-z commented 1 year ago

Hi, thank you for your answer. I apologize for my little knowledge. Your hint leads to another question. When starting to raise an issue I saw a note (https://github.com/git-touch/highlight.dart/issues/47), that this project seems abandoned, so we forked it. The new package is published as: https://pub.dev/packages/highlighting https://pub.dev/packages/flutter_highlighting

Could you have a look at this. Maybe this new fork also solves my problem when using your package.