mirror of
https://github.com/Ascyii/telekasten.nvim.git
synced 2026-01-01 06:14:23 -05:00
Merge pull request #108 from lambtho12/accentTags
fix: accents in tags (closes #86)
This commit is contained in:
@@ -1,9 +1,10 @@
|
|||||||
local Job = require("plenary.job")
|
local Job = require("plenary.job")
|
||||||
|
|
||||||
local M = {}
|
local M = {}
|
||||||
local hashtag_re = "(^|\\s|'|\")#[a-zA-Z]+[a-zA-Z0-9/\\-_]*"
|
local hashtag_re = "(^|\\s|'|\")#[a-zA-ZÀ-ÿ]+[a-zA-ZÀ-ÿ0-9/\\-_]*"
|
||||||
local colon_re = "(^|\\s):[a-zA-Z]+[a-zA-Z0-9/\\-_]*:"
|
local colon_re = "(^|\\s):[a-zA-ZÀ-ÿ]+[a-zA-ZÀ-ÿ0-9/\\-_]*:"
|
||||||
local yaml_re = "(^|\\s)tags:\\s*\\[([a-zA-Z]+[a-zA-Z0-9/\\-_]*(,\\s)*)*]"
|
local yaml_re =
|
||||||
|
"(^|\\s)tags:\\s*\\[([a-zA-ZÀ-ÿ]+[a-zA-ZÀ-ÿ0-9/\\-_]*(,\\s)*)*]"
|
||||||
|
|
||||||
local function command_find_all_tags(opts)
|
local function command_find_all_tags(opts)
|
||||||
opts = opts or {}
|
opts = opts or {}
|
||||||
|
|||||||
@@ -11,8 +11,8 @@ syn region Comment matchgroup=Comment start="<!--" end="-->" contains=tkTag kee
|
|||||||
syntax region tkLink matchgroup=tkBrackets start=/\[\[/ end=/\]\]/ display oneline
|
syntax region tkLink matchgroup=tkBrackets start=/\[\[/ end=/\]\]/ display oneline
|
||||||
syntax region tkHighlight matchgroup=tkBrackets start=/==/ end=/==/ display oneline
|
syntax region tkHighlight matchgroup=tkBrackets start=/==/ end=/==/ display oneline
|
||||||
|
|
||||||
syntax match tkTag "\v#[a-zA-Z]+[a-zA-Z0-9/\-_]*"
|
syntax match tkTag "\v#[a-zA-ZÀ-ÿ]+[a-zA-ZÀ-ÿ0-9/\-_]*"
|
||||||
syntax match tkTag "\v:[a-zA-Z]+[a-zA-Z0-9/\-_]*:"
|
syntax match tkTag "\v:[a-zA-ZÀ-ÿ]+[a-zA-ZÀ-ÿ0-9/\-_]*:"
|
||||||
|
|
||||||
syntax match tkTagSep "\v\s*,\s*" contained
|
syntax match tkTagSep "\v\s*,\s*" contained
|
||||||
syntax region tkTag matchgroup=tkBrackets start=/^tags\s*:\s*\[\s*/ end=/\s*\]\s*$/ contains=tkTagSep display oneline
|
syntax region tkTag matchgroup=tkBrackets start=/^tags\s*:\s*\[\s*/ end=/\s*\]\s*$/ contains=tkTagSep display oneline
|
||||||
@@ -28,7 +28,7 @@ let b:current_syntax = 'telekasten'
|
|||||||
" hi tklink ctermfg=72 cterm=bold,underline
|
" hi tklink ctermfg=72 cterm=bold,underline
|
||||||
" hi tkBrackets ctermfg=gray
|
" hi tkBrackets ctermfg=gray
|
||||||
|
|
||||||
" " Highlight ==highlighted== text
|
" " Highlight ==highlighted== text
|
||||||
" hi tkHighlight ctermbg=yellow ctermfg=darkred cterm=bold
|
" hi tkHighlight ctermbg=yellow ctermfg=darkred cterm=bold
|
||||||
"
|
"
|
||||||
" " Tags
|
" " Tags
|
||||||
|
|||||||
Reference in New Issue
Block a user