Skip to content

Commit

Permalink
fix: Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mike325 committed May 14, 2021
1 parent 7a00efb commit 2273076
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,10 @@ Todo comes with the following defaults:
},
-- regex that will be used to match keywords.
-- don't replace the (KEYWORDS) placeholder
pattern = "(KEYWORDS):",
-- pattern = "(KEYWORDS)", -- match without the extra colon. You'll likely get false positives
-- pattern = "-- (KEYWORDS):", -- only match in lua comments
rg_pattern = '\\b(KEYWORDS):', -- rust regex
hl_pattern = '<(KEYWORDS)>:', -- viml regex, this substitudes %s inside commentstring option
-- rg_pattern = "(KEYWORDS)", -- match without the extra colon. You'll likely get false positives
-- rg_pattern = "-- (KEYWORDS):", -- only match in lua comments
}
```

Expand Down
4 changes: 2 additions & 2 deletions lua/todo-comments/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ local defaults = {
-- don't replace the (KEYWORDS) placeholder
rg_pattern = '\\b(KEYWORDS):', -- rust regex
hl_pattern = '<(KEYWORDS)>:', -- viml regex, this substitudes %s inside commentstring option
-- pattern = "(KEYWORDS)", -- match without the extra colon. You'll likely get false positives
-- pattern = "-- (KEYWORDS):", -- only match in lua comments
-- rg_pattern = "(KEYWORDS)", -- match without the extra colon. You'll likely get false positives
-- rg_pattern = "-- (KEYWORDS):", -- only match in lua comments
}

M._options = nil
Expand Down

0 comments on commit 2273076

Please sign in to comment.