Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>adding a <code>\</code> before the last <code>{</code> gives no warning when using ctags. I don't know if the tags produced give the desired result since I don't know the language.</p> <p>The result would be:</p> <pre><code>--langdef=scss --langmap=scss:.scss --regex-scss=/^[ \t]*([^\t {][^{]{1,100})(\t| )*\{/| \1/d,definition/ </code></pre> <p>Update: like I mentioned above, I don't know the language, so it is hard to check the actual definition of the tags. I looked online and the following code is listed as scss in some webpage. Suppose the tags you want to get are the words following mixing.</p> <pre><code>@mixin table-scaffolding { th { text-align: center; font-weight: bold; } td, th { padding: 2px; } } @mixin left($dist) { float: left; margin-left: $dist; } #data { @include left(10px); @include table-scaffolding; } </code></pre> <p>then with the following:</p> <pre><code>--langdef=scss --langmap=scss:.scss --regex-scss=/^[ \t]*([^\t {][^{]{1,100})(\t| )*\{/| \1/d,definition/ --regex-scss=/^[@]mixin ([^ (]+).*/\1/m,mixin/ --regex-scss=/^[@]function ([^ (]+).*/\1/f,function/ </code></pre> <p>you get the two new tags <code>left</code> and <code>table-scaffolding</code>. So if I am in the word <code>left</code> inside data hit <code>ctrl+]</code> it jumps to the line where data is defined. You have to be careful for the other keyword because it has a <code>-</code> in the word. So if you are on table and press <code>ctrl+]</code> you will get the same error tag not found. For this to work you have to add the following in your <code>.vimrc</code></p> <pre><code>set iskeyword+=- </code></pre> <p>You should be able to generalize the above for other tags you need, or even build a general regular expression to handle all the tags, as you initially meant.</p> <p>If you post a specific example of how the file you are trying to work with looks like, and what are the tags you are trying to obtain I am sure I or other people would be able to help figure out a expression for that.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload