Mercurial > vim
view src/proto/cindent.pro @ 19607:d24e6844aabd v8.2.0360
patch 8.2.0360: yaml files are only recognized by the file extension
Commit: https://github.com/vim/vim/commit/8eab73132838e977092d7b46f70b4ecf6274fd6a
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Mar 6 22:25:56 2020 +0100
patch 8.2.0360: yaml files are only recognized by the file extension
Problem: Yaml files are only recognized by the file extension.
Solution: Check for a line starting with "%YAML". (Jason Franklin)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 06 Mar 2020 22:30:04 +0100 |
parents | fe5afdc03bd2 |
children | 0d798c7e1865 |
line wrap: on
line source
/* cindent.c */ int cin_is_cinword(char_u *line); pos_T *find_start_comment(int ind_maxcomment); int cindent_on(void); void parse_cino(buf_T *buf); int get_c_indent(void); int in_cinkeys(int keytyped, int when, int line_is_empty); void do_c_expr_indent(void); void f_cindent(typval_T *argvars, typval_T *rettv); /* vim: set ft=c : */