Skip to content

Commit

Permalink
Fix incorrect description of strchr()
Browse files Browse the repository at this point in the history
  • Loading branch information
paigeruten committed Apr 29, 2017
1 parent bba6f24 commit f42d706
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## 1.0.0beta8 (April 28, 2017)

* `strchr()` was described incorrectly in
[chapter 7](http://viewsourcecode.org/snaptoken/kilo/07.syntaxHighlighting.html#colorful-numbers).
(Thanks Rudi)

## 1.0.0beta7 (April 20, 2017)

* In `editorSelectSyntaxHighlight()`, change the logic for filename pattern
Expand Down
7 changes: 3 additions & 4 deletions doc/07.syntaxHighlighting.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,10 +181,9 @@ returns true if it's considered a separator character.

{{is-separator}}

`strchr()` comes from `<string.h>`. It looks to see if any one of the
characters in the first string appear in the second string. If so, it returns a
pointer to the character in the second string that matched. Otherwise, it
returns `NULL`.
`strchr()` comes from `<string.h>`. It looks for the first occurrence of a
character in a string, and returns a pointer to the matching character in the
string. If the string doesn't contain the character, `strchr()` returns `NULL`.

Right now, numbers are highlighted even if they're part of an identifier, such
as the `32` in `int32_t`. To fix that, we'll require that numbers are preceded
Expand Down
2 changes: 1 addition & 1 deletion leg.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
:name: kilo
:version: "1.0.0beta7"
:version: "1.0.0beta8"
:title: Build Your Own Text Editor
:rouge_theme: github
:bold_weight: 500
Expand Down

0 comments on commit f42d706

Please sign in to comment.