Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
mirnawong1 committed Oct 17, 2024
1 parent 0c445ae commit 016a250
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions styles/custom/UIElements.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,12 @@ extends: existence
message: "UI elements like '%s' should be bold."
level: warning
tokens:
# Match UI elements that are not bolded (i.e., not within **)
- '(?<!\*\*)\bSave\b(?!\*\*)'
- '(?<!\*\*)\bSave as\b(?!\*\*)'
- '(?<!\*\*)\bCancel\b(?!\*\*)'
- '(?<!\*\*)\bSubmit\b(?!\*\*)'
- '(?<!\*\*)\bEdit\b(?!\*\*)'
- '(?<!\*\*)\bAccount settings\b(?!\*\*)'
- '(?<!\*\*)\bProject details\b(?!\*\*)'
- '(?<!\*\*)\bProfile settings\b(?!\*\*)'
- '(?<!\*\*)\bPersonal profile\b(?!\*\*)'

scope: text.paragraph
- '^(?!\s*#).*?(?<!\*\*)\bSave\b(?!\*\*)'
- '^(?!\s*#).*?(?<!\*\*)\bSave as\b(?!\*\*)'
- '^(?!\s*#).*?(?<!\*\*)\bCancel\b(?!\*\*)'
- '^(?!\s*#).*?(?<!\*\*)\bSubmit\b(?!\*\*)'
- '^(?!\s*#).*?(?<!\*\*)\bEdit\b(?!\*\*)'
- '^(?!\s*#).*?(?<!\*\*)\bAccount settings\b(?!\*\*)'
- '^(?!\s*#).*?(?<!\*\*)\bProject details\b(?!\*\*)'
- '^(?!\s*#).*?(?<!\*\*)\bProfile settings\b(?!\*\*)'
- '^(?!\s*#).*?(?<!\*\*)\bPersonal profile\b(?!\*\*)'

0 comments on commit 016a250

Please sign in to comment.