From c70d019ea9b48480dd506f78fedb6b18252176b1 Mon Sep 17 00:00:00 2001 From: Chris Grieser <73286100+chrisgrieser@users.noreply.github.com> Date: Sat, 1 Jun 2024 23:23:16 +0200 Subject: [PATCH] docs: fix a few typos --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index dd69096..49fcef0 100644 --- a/README.md +++ b/README.md @@ -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", { @@ -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", {