slang.c

来自「Exuberant Ctags is a multilanguage reimp」· C语言 代码 · 共 42 行

C
42
字号
/* *   $Id: slang.c,v 1.5 2006/05/30 04:37:13 darren Exp $ * *   Copyright (c) 2000-2001, Francesc Rocher * *   Author: Francesc Rocher <f.rocher@computer.org>. * *   This source code is released for free distribution under the terms of the *   GNU General Public License. * *   This module contains functions for generating tags for S-Lang files. *//* *   INCLUDE FILES */#include "general.h"  /* must always come first */#include "parse.h"/* *   FUNCTION DEFINITIONS */static void installSlangRegex (const langType language){	addTagRegex (language,		"^.*define[ \t]+([A-Z_][A-Z0-9_]*)[^;]*$",		"\\1", "f,function,functions", "i");	addTagRegex (language,		"^[ \t]*implements[ \t]+\\([ \t]*\"([^\"]*)\"[ \t]*\\)[ \t]*;",		"\\1", "n,namespace,namespaces", NULL);}extern parserDefinition* SlangParser (void){	static const char *const extensions [] = { "sl", NULL };	parserDefinition* const def = parserNew ("SLang");	def->extensions = extensions;	def->initialize = installSlangRegex;	def->regex      = TRUE;	return def;}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?