File tree Expand file tree Collapse file tree 3 files changed +10
-5
lines changed Expand file tree Collapse file tree 3 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
+ ## 1.0.0beta8 (April 28, 2017)
4
+
5
+ * ` strchr() ` was described incorrectly in
6
+ [ chapter 7] ( http://viewsourcecode.org/snaptoken/kilo/07.syntaxHighlighting.html#colorful-numbers ) .
7
+ (Thanks Rudi)
8
+
3
9
## 1.0.0beta7 (April 20, 2017)
4
10
5
11
* In ` editorSelectSyntaxHighlight() ` , change the logic for filename pattern
Original file line number Diff line number Diff line change @@ -181,10 +181,9 @@ returns true if it's considered a separator character.
181
181
182
182
{{is-separator}}
183
183
184
- ` strchr() ` comes from ` <string.h> ` . It looks to see if any one of the
185
- characters in the first string appear in the second string. If so, it returns a
186
- pointer to the character in the second string that matched. Otherwise, it
187
- returns ` NULL ` .
184
+ ` strchr() ` comes from ` <string.h> ` . It looks for the first occurrence of a
185
+ character in a string, and returns a pointer to the matching character in the
186
+ string. If the string doesn't contain the character, ` strchr() ` returns ` NULL ` .
188
187
189
188
Right now, numbers are highlighted even if they're part of an identifier, such
190
189
as the ` 32 ` in ` int32_t ` . To fix that, we'll require that numbers are preceded
Original file line number Diff line number Diff line change 1
1
---
2
2
:name : kilo
3
- :version : " 1.0.0beta7 "
3
+ :version : " 1.0.0beta8 "
4
4
:title : Build Your Own Text Editor
5
5
:rouge_theme : github
6
6
:bold_weight : 500
You can’t perform that action at this time.
0 commit comments