Skip to content

ini.yaml - Code Highlighter Misses .conf Files #4004

@MichaelRogsys

Description

@MichaelRogsys

Description

I noticed that syntax highlighting isn't working for standard .conf files (like sysctl.conf or nginx.conf). The current regex seems to be anchoring the extension to the weechat string, so it ignores everything else.

I moved .conf into the first lookup group so it applies to all configuration files, not just Weechat ones. And I then had sytax color highlighting for any file ending in .conf I opened in micro.

Proposed Fix:
Rewrite the regex pattern for the file syntax/ini.yam to capture the string .conf correctly.

Verified Regex:
(\.(ini|desktop|lfl|override|tscn|tres|conf)$|(mimeapps\.list|pinforc|setup\.cfg|project\.godot)$|weechat.+\.conf)

Test Plan
Tested locally and verified the highlighting now shows up correctly.

Note: This is my first time submitting a fix for a project this size (or ever actually), so please let me know if I need to adjust anything!

Environment

  • Version: 2.015
  • OS: CachyOS
  • Terminal: Fish

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions