-
Notifications
You must be signed in to change notification settings - Fork 590
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sync our ctags to the latest tag version (p6.1.20240421.0) #3859
Merged
Merged
Changes from 2 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
7b14e1a
Update perl6.c to raku.c parser
techee baaed02
Update all parsers and related files to ctags p6.1.20240421.0
techee 7943b7d
Add ldscript parser
techee f21e1de
Update parser kind mappings
techee e00a268
Map title/subtitle of the rst parser
techee cdf1aa1
Map defines to tm_tag_variable_t of verilog so we get the same output…
techee 786819b
Map filter to tm_tag_function_t for powershell to get the same output…
techee 65bad20
Update asm test
techee 27659bd
Disable roles for macro kinds in C/C++
techee 978eb03
Update unit tests for javascript
techee aa0c796
Switch to uctags regex-based matlab parser
techee d515bce
Use repoinfo.h with the used tag version
techee 0b52e79
Add dummy TMParserMapGroup for ldscript to avoid warnings
techee acb4678
Map freepascal namespaces and add a unit test for them
techee 77614bd
Map PowerShell classes and enums
b4n ae75c73
Fix a JavaScript test
b4n File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
#define CTAGS_REPOINFO "p6.0.20231001.0" | ||
#define CTAGS_REPOINFO "p6.1.20240421.0" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
/* | ||
* Copyright (c) 2008, David Fishburn | ||
* | ||
* 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 MATLAB language files. | ||
*/ | ||
|
||
/* | ||
* INCLUDE FILES | ||
*/ | ||
#include "general.h" /* must always come first */ | ||
|
||
#include <string.h> | ||
#include "parse.h" | ||
#include "routines.h" | ||
#include "selectors.h" | ||
|
||
static tagRegexTable matlabTagRegexTable [] = { | ||
/* function [x,y,z] = asdf */ | ||
{ "^[ \t]*function[ \t]*\\[.*\\][ \t]*=[ \t]*([.a-zA-Z0-9_]+)", | ||
"\\1", "f,function", NULL}, | ||
/* function x = asdf */ | ||
{"^[ \t]*function[ \t]*[a-zA-Z0-9_]+[ \t]*=[ \t]*([.a-zA-Z0-9_]+)", | ||
"\\1", "f,function", NULL}, | ||
/* function asdf */ | ||
{"^[ \t]*function[ \t]*([.a-zA-Z0-9_]+)[^=]*$", "\\1", | ||
"f,function", NULL}, | ||
/* variables */ | ||
{"^[ \t]*([a-zA-Z0-9_]+)[ \t]*=[ \t]", "\\1", | ||
"v,variable", NULL}, | ||
/* class definitions */ | ||
{"^[ \t]*classdef[ \t]*([a-zA-Z0-9_]+)", "\\1", | ||
"c,class", NULL}, | ||
}; | ||
|
||
/* | ||
* FUNCTION DEFINITIONS | ||
*/ | ||
extern parserDefinition* MatLabParser (void) | ||
{ | ||
static const char *const extensions [] = { "m", NULL }; | ||
static selectLanguage selectors [] = { selectByObjectiveCAndMatLabKeywords, | ||
NULL }; | ||
parserDefinition* const def = parserNew ("MatLab"); | ||
def->extensions = extensions; | ||
def->tagRegexTable = matlabTagRegexTable; | ||
def->tagRegexCount = ARRAY_SIZE (matlabTagRegexTable); | ||
def->method = METHOD_NOT_CRAFTED|METHOD_REGEX; | ||
def->selectLanguage = selectors; | ||
return def; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,12 @@ | ||
backtrack�16�0 | ||
function: backtrack | ||
cDDfnc�16384�0 | ||
variable: cDDfnc | ||
d�16384�0 | ||
variable: d | ||
fcall�16384�0 | ||
variable: fcall | ||
fn�16384�0 | ||
variable: fn | ||
xn�16384�0 | ||
variable: xn |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that's a bit sad… I'll see if I can get those fixed upstream (it's easy enough to patch actually -- yet, I don't have a clue about matlab 😁 )