Skip to content

crash when syntax file is not complete? #3253

@xirishpvp

Description

@xirishpvp

Description of the problem or steps to reproduce

open a syntax file with micro, then vsplit and open a test.lua file in the same directory as the syntax file.
the bug happens even when you only open test.lua so im not sure if its regex crashing it or a bug.

example:

filetype: lua

detect:
    filename: "\\.lua&"

rules:
    - identifier.var:
        start: ""
        end: ""
        rules: []
test = require("hello.lua")

a = 5

if

Specifications

Commit hash: 68d88b5
OS: arch linux
Terminal: konsole

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions