Skip to content

Commit

Permalink
docs: fix a few typos
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisgrieser authored Jun 1, 2024
1 parent 7a4b757 commit c70d019
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,14 +175,14 @@ require("spider").motion("w", {
customPatterns = { "%d+" },
})

-- The motion stops at only at words with at least 3 chars or at any punctuation.
-- The motion stops only at words with 3 or more chars or at any punctuation.
-- (Lua patterns have no quantifier like `{3,}`, thus the repetition.)
require("spider").motion("w", {
customPatterns = { "%w%w%w+", "%p+" },
})

-- The motion stops only at hashes like `ef82a2`, avoiding repetition by using
-- `string.rep()`.
-- The motion stops only at hashes like `ef82a2`
-- (here avoiding repetition by using `string.rep()`)
-- Extend default patterns by passing a `patterns` table and
-- setting `overrideDefault` to false.
require("spider").motion("w", {
Expand All @@ -194,7 +194,7 @@ require("spider").motion("w", {
},
})

-- The motion stops at the next declaration of a variable in -- javascript.
-- The motion stops at the next declaration of a javascript variable.
-- (The `e` motion combined with the `.` matching any character in
-- lua patterns ensures that you stop at beginning of the variable name.)
require("spider").motion("e", {
Expand Down

0 comments on commit c70d019

Please sign in to comment.