-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Description
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