mirror of
https://github.com/dlang-community/D-Scanner.git
synced 2025-04-27 05:40:01 +03:00
Check args similar to tokenCount
This commit is contained in:
parent
9d5081cadc
commit
af53b74106
1 changed files with 2 additions and 2 deletions
|
@ -222,11 +222,11 @@ int main(string[] args)
|
|||
}
|
||||
else if (imports)
|
||||
{
|
||||
const string[] fileNames = usingStdin ? ["stdin"] : args[1 .. $];
|
||||
string[] fileNames = usingStdin ? ["stdin"] : args[1 .. $];
|
||||
LexerConfig config;
|
||||
config.stringBehavior = StringBehavior.source;
|
||||
auto visitor = new ImportPrinter;
|
||||
foreach (name; fileNames)
|
||||
foreach (name; expandArgs(fileNames))
|
||||
{
|
||||
config.fileName = name;
|
||||
auto tokens = getTokensForParser(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue