Skip to content

Cannot work when text characters > ~4099 #11

@Freed-Wu

Description

@Freed-Wu
-  if (strlen(_text) > SKIP_PARSE_THRESHOLD) {
-    return textstyle_buffer;
-  }
+  // if (strlen(_text) > SKIP_PARSE_THRESHOLD) {
+  //   return textstyle_buffer;
+  // }

Before comment libs/tm-parser/textmate/textmate.cpp, It cannot work for too long text.
After comment, it will not highlight when text characters > ~4099.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions