[BUG] Code sections isn't working for Javascript language
TaylorHo opened this issue · comments
I tested with Java, Dart, and Javascript. Javascript was the only one of those languages where the sections didn't work.
I was trying to make the code read-only with controller.readOnlySectionNames = {'section1'};
.
Dart example:
final controller = CodeController(
text: '''
// [START section1]
final String test = "testing here";
// [END section1]
''',
language: dart,
namedSectionParser: const BracketsStartEndNamedSectionParser(),
);
Javascript example:
final controller = CodeController(
text: '''
// [START section1]
console.log("teste");
// [END section1]
''',
language: javascript,
namedSectionParser: const BracketsStartEndNamedSectionParser(),
);