Reverted last commit. (0.12.5)
This commit is contained in:
parent
eb499c07c9
commit
df7492fc1d
2 changed files with 3 additions and 3 deletions
|
|
@ -1,5 +1,5 @@
|
|||
cmake_minimum_required(VERSION 3.16)
|
||||
project(fun VERSION 0.12.4 LANGUAGES C)
|
||||
project(fun VERSION 0.12.5 LANGUAGES C)
|
||||
|
||||
set(CMAKE_C_STANDARD 11)
|
||||
set(CMAKE_C_STANDARD_REQUIRED ON)
|
||||
|
|
|
|||
|
|
@ -545,7 +545,7 @@ static int starts_with_kw(const char *s, const char *kw) {
|
|||
|
||||
/* Compute how many indentation levels (2 spaces per level) are still open.
|
||||
* Only counts significant lines (non-blank, not comment-only),
|
||||
* and ignores text inside comment blocks. */
|
||||
* and ignores text inside \/* ... *\/ block comments. */
|
||||
static int compute_open_indent_blocks(const char *buf) {
|
||||
int in_block_comment = 0;
|
||||
int open = 0;
|
||||
|
|
@ -618,7 +618,7 @@ static int compute_open_indent_blocks(const char *buf) {
|
|||
|
||||
/* Detect if current buffer looks incomplete:
|
||||
* - Unclosed quotes (\' or \") with escapes
|
||||
* - Unclosed comment block
|
||||
* - Unclosed block comment \/* ... *\/
|
||||
* - Parentheses not balanced
|
||||
* - Last significant line is a block header (if/else/while/for/fun)
|
||||
* - Line ends with an operator/comma
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue