MultinilineRegex标记与Universal CTAGS之前的3行相匹配 我正在索引Mozilla MDN CSS Web文档,并相应地制作标签。我有一个与CSS属性以及一个单个文件中的其他主题有关的文档,localdocu.mdncssdan,e ...

问题描述 投票:0回答:1
,每个主题都以Newline开头,然后是该主题的名称。

以下是文档的简化视图。 #

我拥有的是以下规则
This page was last modified on Jul 7, 2023 by MDN contributors.

(...)

#
animation-composition

The animation-composition CSS property specifies the composite operation
to use when multiple animations affect the same property simultaneously.
(...)

This page was last modified on Jun 26, 2023 by MDN contributors.



#
animation-delay

The animation-delay CSS property specifies the amount of time to wait
from applying the animation to an element before beginning to perform
(...)

哪个工作,检测标签,但正则是标签的命运,将一些线路移动了一些线条

--kinddef-mdncssdantags=t,topic,topics --mline-regex-mdncssdantags=/^#\n(\w.*)$/\1/t/{mgroup=0}

因此,这是不准确的,当我打开说
animation-composition localdocu.mdncssdan /^This page was last modified on Jul 7, 2023 by MDN contributors.$/;" t animation-delay localdocu.mdncssdan /^This page was last modified on Jun 26, 2023 by MDN contributors.$/;" t

时,它将进入3行,最大的问题是,当此行是其他主题相同时(例如,我有其他主题,其3行上线是相同的

animation-delay
,那么标签引用系统就完全混乱了)

	

我写的是评论,指定

This page was last modified....
而不是
This page was last modified on Jun 26
应该起作用。 另外,将
{mgroup=1}
代替

{mgroup=0}
regex linux vim ctags universal-ctags
1个回答
0
投票
(\w[^\n]*)

	
最新问题
© www.soinside.com 2019 - 2025. All rights reserved.