Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Q: How to change language-todo matching regex in config.cson #79

@dsanalytics

Description

@dsanalytics

Does language-todo support modifying its regex in config.cson to match new words? If it does, can you show how that entry would look like if I'd like to include all existing keywords + e.g. MYWORD keyword? Thanks.

P.S. This is related to: mrodalgaard/atom-todo-show#199 (comment)

For example, below are todo-show config.cson entries:

  "todo-show":
    findTheseTodos: [
      "TODO"
      "FIXME"
      "CHANGED"
      "XXX"
      "IDEA"
      "HACK"
      "NOTE"
      "REVIEW"
      "NB"
      "BUG"
      "QUESTION"
      "COMBAK"
      "TEMP"
      "COMEBACK"
    ]
    findUsingRegex: "/# \\b(${TODOS})[:;.,]?\\d*($|\\s.*$|[\\{\\[\\(].+$)/g"

OS: Win 10 64bit Home Prem
Atom: 1.23.2 x64

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions