mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
ide: External mode improvements
This commit is contained in:
parent
eb0fcfeca3
commit
c082cd116d
2 changed files with 4 additions and 2 deletions
|
|
@ -40,7 +40,7 @@ void RegisterSyntaxModules()
|
|||
"C/C++");
|
||||
RegisterCSyntax("cuda", CSyntax::HIGHLIGHT_CUDA, "*.cu *.ci", "Cuda");
|
||||
RegisterCSyntax("java", CSyntax::HIGHLIGHT_JAVA, "*.java", "Java");
|
||||
RegisterCSyntax("js", CSyntax::HIGHLIGHT_JAVASCRIPT, "*.js", "JavaScript");
|
||||
RegisterCSyntax("js", CSyntax::HIGHLIGHT_JAVASCRIPT, "*.js *.jsx *.ts *.tsx", "JavaScript");
|
||||
RegisterCSyntax("cs", CSyntax::HIGHLIGHT_CS, "*.cs", "C#");
|
||||
RegisterCSyntax("json", CSyntax::HIGHLIGHT_JSON, "*.json", "JSON");
|
||||
RegisterCSyntax("css", CSyntax::HIGHLIGHT_CSS, "*.css", "Cascading Style Sheet");
|
||||
|
|
|
|||
|
|
@ -499,11 +499,13 @@ bool FileOrder_(const String& a, const String& b)
|
|||
|
||||
void SyncPackage(const String& active, Package& actual)
|
||||
{
|
||||
String source_masks = GetVar("SOURCE_MASKS");
|
||||
|
||||
Vector<String> file;
|
||||
for(FindFile ff(PackageDirectory(active) + "/*.*"); ff; ff.Next())
|
||||
if(ff.IsFile()) {
|
||||
String n = ff.GetName();
|
||||
if(IsSourceFile(n) || IsHeaderFile(n))
|
||||
if(IsSourceFile(n) || IsHeaderFile(n) || IsExternalMode() && PatternMatchMulti(source_masks, n))
|
||||
file.Add(n);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue