Sha256: dfedc8fc56f4d7a0a20a74b28e61c1cf22e6c2ab9ed8d10a03a228b8236b9efa
Contents?: true
Size: 1.46 KB
Versions: 2
Compression:
Stored size: 1.46 KB
Contents
/* * Copyright (c) 2015, André Rivotti Casimiro <andre.r.casimiro@gmail.com> * * This source code is released for free distribution under the terms of the * GNU General Public License version 2 or (at your option) any later version. * * This module contains functions for generating tags for DTS language files. */ /* * INCLUDE FILES */ #include "general.h" #include "meta-cpreprocessor.h" #include "kind.h" #include "parse.h" #include "routines.h" static tagRegexTable dtsTagRegexTable [] = { /* phandle = <0x00> */ {"^[ \t]*phandle[ \t]+=[ \t]+<(0x[a-fA-F0-9]+)>", "\\1", "p,phandler,phandlers", "{scope=ref}"}, /* label: */ {"^[ \t]*([a-zA-Z][a-zA-Z0-9_]*)[ \t]*:", "\\1", "l,label,labels", "{scope=push}"}, /* extras for tracking scopes */ {"^[ \t]*([a-zA-Z][a-zA-Z0-9_]*)[ \t]*\\{", "", "", "{scope=push}{placeholder}"}, {"\\}[ \t]*;", "", "", "{scope=pop}{exclusive}"}, }; /* * FUNCTION DEFINITIONS */ static void runCppGetc (void) { cppInit (false, false, false, false, NULL, 0, NULL, 0, 0); findRegexTagsMainloop (cppGetc); cppTerminate (); } extern parserDefinition* DTSParser (void) { static const char *const extensions [] = { "dts", "dtsi", NULL }; parserDefinition* const def = parserNew ("DTS"); def->extensions = extensions; def->parser = runCppGetc; def->tagRegexTable = dtsTagRegexTable; def->tagRegexCount = ARRAY_SIZE (dtsTagRegexTable); def->method = METHOD_REGEX; def->requestAutomaticFQTag = true; return def; }
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ctags.rb-1.1.4 | ext/vendor/ctags/parsers/dts.c |
ctags.rb-1.1.3 | ext/vendor/ctags/parsers/dts.c |