Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make INI syntax register as handler of .inf files #2190

Merged
merged 1 commit into from
May 11, 2022

Commits on May 10, 2022

  1. Make INI syntax register as handler of .inf files

    We need to type `inf` and `INF` as strings in `INI.sublime-syntax`,
    otherwise `yaml-rust` interprets them as real numbers ("infinity") and
    they do not get registered as file extensions:
    
        /Users/martin/src/yaml-rust # https://github.com/chyh1990/yaml-rust
        % cargo run --example dump_yaml ~/src/bat/assets/syntaxes/02_Extra/INI.sublime-syntax
        ---
        String("name"):
            String("INI")
        String("file_extensions"):
                String("ini")
                String("INI")
                Real("inf")
                Real("INF")
        ...
    
    Also add a regression test.
    Enselic committed May 10, 2022
    Configuration menu
    Copy the full SHA
    637578f View commit details
    Browse the repository at this point in the history