Mercurial > vim
annotate src/proto/cindent.pro @ 26819:0d798c7e1865 v8.2.3938
patch 8.2.3938: line comment start is also found in a string
Commit: https://github.com/vim/vim/commit/ba26367fea3b63df49d274f3d5cca0af38402add
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Dec 29 18:09:13 2021 +0000
patch 8.2.3938: line comment start is also found in a string
Problem: Line comment start is also found in a string.
Solution: Skip line comments in a string.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 29 Dec 2021 19:15:03 +0100 |
parents | fe5afdc03bd2 |
children |
rev | line source |
---|---|
18265
fe5afdc03bd2
patch 8.1.2127: the indent.c file is a bit big
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
1 /* cindent.c */ |
fe5afdc03bd2
patch 8.1.2127: the indent.c file is a bit big
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
2 int cin_is_cinword(char_u *line); |
26819
0d798c7e1865
patch 8.2.3938: line comment start is also found in a string
Bram Moolenaar <Bram@vim.org>
parents:
18265
diff
changeset
|
3 int is_pos_in_string(char_u *line, colnr_T col); |
18265
fe5afdc03bd2
patch 8.1.2127: the indent.c file is a bit big
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
4 pos_T *find_start_comment(int ind_maxcomment); |
fe5afdc03bd2
patch 8.1.2127: the indent.c file is a bit big
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
5 int cindent_on(void); |
fe5afdc03bd2
patch 8.1.2127: the indent.c file is a bit big
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
6 void parse_cino(buf_T *buf); |
fe5afdc03bd2
patch 8.1.2127: the indent.c file is a bit big
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
7 int get_c_indent(void); |
fe5afdc03bd2
patch 8.1.2127: the indent.c file is a bit big
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
8 int in_cinkeys(int keytyped, int when, int line_is_empty); |
fe5afdc03bd2
patch 8.1.2127: the indent.c file is a bit big
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
9 void do_c_expr_indent(void); |
fe5afdc03bd2
patch 8.1.2127: the indent.c file is a bit big
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
10 void f_cindent(typval_T *argvars, typval_T *rettv); |
fe5afdc03bd2
patch 8.1.2127: the indent.c file is a bit big
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
11 /* vim: set ft=c : */ |