Skip to content

Commit 46201c2

Browse files
authored
Fix spelling, prettier format, pre-commit autoupdate (#457)
Co-authored-by: John Bampton <418747+jbampton@users.noreply.github.com>
1 parent 8ef7fde commit 46201c2

File tree

7 files changed

+18
-13
lines changed

7 files changed

+18
-13
lines changed

.pre-commit-config.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ repos:
1111
- id: identity
1212
- id: check-hooks-apply
1313
- repo: https://github.com/Lucas-C/pre-commit-hooks
14-
rev: v1.4.2
14+
rev: v1.5.1
1515
hooks:
1616
- id: insert-license
1717
name: Add license for all JavaScript files
@@ -75,7 +75,7 @@ repos:
7575
- id: mixed-line-ending
7676
- id: trailing-whitespace
7777
- repo: https://github.com/codespell-project/codespell
78-
rev: v2.2.2
78+
rev: v2.2.4
7979
hooks:
8080
- id: codespell
8181
name: Run codespell
@@ -88,13 +88,13 @@ repos:
8888
# - id: shellcheck
8989
# - id: shfmt
9090
- repo: https://github.com/pre-commit/mirrors-prettier
91-
rev: v3.0.0-alpha.4
91+
rev: v3.0.0-alpha.9-for-vscode
9292
hooks:
9393
- id: prettier
9494
name: Run prettier
9595
description: Format files with prettier
9696
- repo: https://github.com/igorshubovych/markdownlint-cli
97-
rev: v0.33.0
97+
rev: v0.34.0
9898
hooks:
9999
- id: markdownlint
100100
name: Run markdownlint
@@ -104,7 +104,7 @@ repos:
104104
types: [markdown]
105105
files: \.(md|mdown|markdown)$
106106
- repo: https://github.com/adrienverge/yamllint
107-
rev: v1.29.0
107+
rev: v1.31.0
108108
hooks:
109109
- id: yamllint
110110
name: Run yamllint

src/parser/lexer/token.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ typedef struct _keyword
189189
const char* identifier;
190190
size_t length;
191191
TokenType type;
192-
bool caseSensetice; // true = lowercase or uppervase not matter, flase means full equal `===`
192+
bool caseSensitive; // true = lowercase or uppercase not matter, false means full equal `===`
193193
} Keyword;
194194

195195
static Keyword keywords[] = {

tmp/c-new/docs/index.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,12 @@
66
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
77
<style>
88
body {
9-
font-family: system-ui, -apple-system, Roboto, 'Segoe UI', sans-serif;
9+
font-family:
10+
system-ui,
11+
-apple-system,
12+
Roboto,
13+
'Segoe UI',
14+
sans-serif;
1015
margin: 0;
1116
}
1217
a:not(:hover) {

tmp/c-new/src/token.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ typedef struct _keyword
169169
const char *identifier;
170170
size_t length;
171171
TokenType type;
172-
bool caseSensetice; // true = lowercase or uppervase not matter, flase means full equal `===`
172+
bool caseSensitive; // true = lowercase or uppercase not matter, false means full equal `===`
173173
} Keyword;
174174

175175
static Keyword keywords[] = {

tmp/c-new2/token.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ typedef struct _keyword
181181
const char* identifier;
182182
size_t length;
183183
TokenType type;
184-
bool caseSensetice; // true = lowercase or uppervase not matter, flase means full equal `===`
184+
bool caseSensitive; // true = lowercase or uppercase not matter, false means full equal `===`
185185
} Keyword;
186186

187187
static Keyword keywords[] = {

tmp/c-old/src/buffer/sds.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ static inline char sdsReqType(size_t string_size)
8181
* If NULL is used for 'init' the string is initialized with zero bytes.
8282
* If SDS_NOINIT is used, the buffer is left uninitialized;
8383
*
84-
* The string is always null-termined (all the sds strings are, always) so
84+
* The string is always null-terminated (all the sds strings are, always) so
8585
* even if you create an sds string with:
8686
*
8787
* mystring = sdsnewlen("abc",3);
@@ -493,7 +493,7 @@ sds sdscpylen(sds s, const char *t, size_t len)
493493
return s;
494494
}
495495

496-
/* Like sdscpylen() but 't' must be a null-termined string so that the length
496+
/* Like sdscpylen() but 't' must be a null-terminated string so that the length
497497
* of the string is obtained with strlen(). */
498498
sds sdscpy(sds s, const char *t)
499499
{

tmp/c/src/sds.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ static inline char sdsReqType(size_t string_size)
8181
* If NULL is used for 'init' the string is initialized with zero bytes.
8282
* If SDS_NOINIT is used, the buffer is left uninitialized;
8383
*
84-
* The string is always null-termined (all the sds strings are, always) so
84+
* The string is always null-terminated (all the sds strings are, always) so
8585
* even if you create an sds string with:
8686
*
8787
* mystring = sdsnewlen("abc",3);
@@ -493,7 +493,7 @@ sds sdscpylen(sds s, const char *t, size_t len)
493493
return s;
494494
}
495495

496-
/* Like sdscpylen() but 't' must be a null-termined string so that the length
496+
/* Like sdscpylen() but 't' must be a null-terminated string so that the length
497497
* of the string is obtained with strlen(). */
498498
sds sdscpy(sds s, const char *t)
499499
{

0 commit comments

Comments
 (0)