|
| 1 | +/* |
| 2 | + * Generated by ./misc/optlib2c from optlib/vue.ctags, Don't edit this manually. |
| 3 | + */ |
| 4 | +#include "general.h" |
| 5 | +#include "parse.h" |
| 6 | +#include "routines.h" |
| 7 | +#include "field.h" |
| 8 | +#include "xtag.h" |
| 9 | + |
| 10 | + |
| 11 | +static void initializeVueParser (const langType language CTAGS_ATTR_UNUSED) |
| 12 | +{ |
| 13 | +} |
| 14 | + |
| 15 | +extern parserDefinition* VueParser (void) |
| 16 | +{ |
| 17 | + static const char *const extensions [] = { |
| 18 | + "vue", |
| 19 | + NULL |
| 20 | + }; |
| 21 | + |
| 22 | + static const char *const aliases [] = { |
| 23 | + NULL |
| 24 | + }; |
| 25 | + |
| 26 | + static const char *const patterns [] = { |
| 27 | + NULL |
| 28 | + }; |
| 29 | + |
| 30 | + static tagRegexTable VueTagRegexTable [] = { |
| 31 | + {"<template>\n((.|\n){1,}\n)</template>", "", |
| 32 | + "", "{guest=HTML,1start,1end}", NULL, true}, |
| 33 | + {"<script>\n((.|\n){1,}\n)</script>", "", |
| 34 | + "", "{guest=JavaScript,1start,1end}", NULL, true}, |
| 35 | + {"<style([ ]{1,}[a-z]{1,})*>\n((.|\n){1,}\n)</style>", "", |
| 36 | + "", "{guest=CSS,2start,2end}", NULL, true}, |
| 37 | + }; |
| 38 | + |
| 39 | + |
| 40 | + parserDefinition* const def = parserNew ("Vue"); |
| 41 | + |
| 42 | + def->enabled = true; |
| 43 | + def->extensions = extensions; |
| 44 | + def->patterns = patterns; |
| 45 | + def->aliases = aliases; |
| 46 | + def->method = METHOD_NOT_CRAFTED|METHOD_REGEX; |
| 47 | + def->tagRegexTable = VueTagRegexTable; |
| 48 | + def->tagRegexCount = ARRAY_SIZE(VueTagRegexTable); |
| 49 | + def->initialize = initializeVueParser; |
| 50 | + |
| 51 | + return def; |
| 52 | +} |
0 commit comments