Optimize Markdown highlight parsing

This commit is contained in:
1024jp 2022-02-21 23:27:37 +09:00
parent cbd354eb04
commit 26566af6ed
2 changed files with 9 additions and 3 deletions

View File

@ -10,6 +10,12 @@ Change Log
- Unix line endings, namely NEL (New Line), LS (Line Separator), and PS (Paragraph Separator), are added to the line endings options (These items are visible only either by pressing the Option key or the line endings of the opened document is one of these).
### Improvements
- Update Markdown syntax style for faster syntax parsing.
4.1.2 (481)
--------------------------

View File

@ -5,10 +5,10 @@ extensions:
- keyString: "mdown"
- keyString: "mkdn"
metadata:
version: "1.3.2"
version: "1.3.3"
author: "1024jp"
license: "Same as CotEditor"
lastModified: "2022-02-02"
lastModified: "2022-02-21"
distributionURL: "https://coteditor.com"
keywords:
- beginString: "(?<![\\\\*])(\\*{1,3})[^ \\t*](?:\\n[^\\n]|[^\\n])*?(?<![\\\\ ])\\1"
@ -23,7 +23,7 @@ keywords:
- beginString: "\\n[\\t ]*\\n(?:\\- *){3,}$"
regularExpression: true
description: "hr"
- beginString: "\\n[^: \\t][^\\n]*(?=([\\t ]*\\n)?\\n[\\t ]*:[\\t ])"
- beginString: "\\n[^: \\t\\n][^\\n]*+(?=\\n[ ]{0,3}:[ \\t])"
regularExpression: true
description: "[extra] dt"
- beginString: "^(?:\\* *){3,}$"