Mercurial > vim
comparison src/cindent.c @ 26771:fc859aea8cec v8.2.3914
patch 8.2.3914: various spelling mistakes in comments
Commit: https://github.com/vim/vim/commit/af4a61a85d6e8cacc35324f266934bc463a21673
Author: Dominique Pelle <dominique.pelle@gmail.com>
Date: Mon Dec 27 17:21:41 2021 +0000
patch 8.2.3914: various spelling mistakes in comments
Problem: Various spelling mistakes in comments.
Solution: Fix the mistakes. (Dominique Pell?, closes https://github.com/vim/vim/issues/9416)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 27 Dec 2021 18:30:05 +0100 |
parents | 1095fd0dc362 |
children | 0d798c7e1865 |
comparison
equal
deleted
inserted
replaced
26770:15ff3f2e0d58 | 26771:fc859aea8cec |
---|---|
1221 while (*s && *s != ';' && *s != '\'' && *s != '"') | 1221 while (*s && *s != ';' && *s != '\'' && *s != '"') |
1222 { | 1222 { |
1223 if (*s == ')' && cin_nocode(s + 1)) | 1223 if (*s == ')' && cin_nocode(s + 1)) |
1224 { | 1224 { |
1225 // ')' at the end: may have found a match | 1225 // ')' at the end: may have found a match |
1226 // Check for he previous line not to end in a backslash: | 1226 // Check for the previous line not to end in a backslash: |
1227 // #if defined(x) && {backslash} | 1227 // #if defined(x) && {backslash} |
1228 // defined(y) | 1228 // defined(y) |
1229 lnum = first_lnum - 1; | 1229 lnum = first_lnum - 1; |
1230 s = ml_get(lnum); | 1230 s = ml_get(lnum); |
1231 if (*s == NUL || s[STRLEN(s) - 1] != '\\') | 1231 if (*s == NUL || s[STRLEN(s) - 1] != '\\') |
1790 // Spaces from the indent of the line with an unclosed parenthesis, which | 1790 // Spaces from the indent of the line with an unclosed parenthesis, which |
1791 // itself is also unclosed. | 1791 // itself is also unclosed. |
1792 buf->b_ind_unclosed2 = sw; | 1792 buf->b_ind_unclosed2 = sw; |
1793 | 1793 |
1794 // Suppress ignoring spaces from the indent of a line starting with an | 1794 // Suppress ignoring spaces from the indent of a line starting with an |
1795 // unclosed parentheses. | 1795 // unclosed parenthesis. |
1796 buf->b_ind_unclosed_noignore = 0; | 1796 buf->b_ind_unclosed_noignore = 0; |
1797 | 1797 |
1798 // If the opening paren is the last nonwhite character on the line, and | 1798 // If the opening paren is the last nonwhite character on the line, and |
1799 // b_ind_unclosed_wrapped is nonzero, use this indent relative to the outer | 1799 // b_ind_unclosed_wrapped is nonzero, use this indent relative to the outer |
1800 // context (for very long lines). | 1800 // context (for very long lines). |
1802 | 1802 |
1803 // Suppress ignoring white space when lining up with the character after | 1803 // Suppress ignoring white space when lining up with the character after |
1804 // an unclosed parenthesis. | 1804 // an unclosed parenthesis. |
1805 buf->b_ind_unclosed_whiteok = 0; | 1805 buf->b_ind_unclosed_whiteok = 0; |
1806 | 1806 |
1807 // Indent a closing parentheses under the line start of the matching | 1807 // Indent a closing parenthesis under the line start of the matching |
1808 // opening parentheses. | 1808 // opening parenthesis. |
1809 buf->b_ind_matching_paren = 0; | 1809 buf->b_ind_matching_paren = 0; |
1810 | 1810 |
1811 // Indent a closing parentheses under the previous line. | 1811 // Indent a closing parenthesis under the previous line. |
1812 buf->b_ind_paren_prev = 0; | 1812 buf->b_ind_paren_prev = 0; |
1813 | 1813 |
1814 // Extra indent for comments. | 1814 // Extra indent for comments. |
1815 buf->b_ind_comment = 0; | 1815 buf->b_ind_comment = 0; |
1816 | 1816 |