Skip to content

pascal source recognized as json filetype #2894

@BlameTroi

Description

@BlameTroi

A pascal source file can be assigned a json type for syntax highlight

if the first line of a pascal source file is a lone { (open comment) then micro
thinks the file is json and not pascal.

circumventing by adding a blank line works, but it's wrong.

demo.txt

Specifications

Commit hash: 225927b
OS: Windows 11
Terminal: Windows Terminal

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions