Commit Graph

19 Commits

Author SHA1 Message Date
Justin Whear 91c8be08b5 cleanup 2013-07-26 13:32:14 -07:00
Justin Whear 4f32e16e2b Fix recursive Ctags output
Previously using `dscanner --ctags -R <dir>` would output tags without
any filenames, making it pretty useless for navigating in a project.
This was due to all the syntax objects being merged into a single generic
Module, then outputting that module without a filename specified.

This fix does the following:
 * Moves the CTag header output from the Module class to the proper spot in
    main.d
 * Renames `Module.writeCtagsTo` to `getCtags` and now returns string[]
    with the prepared tag lines.
 * The CTag printing functionality in main.d now gathers all tag lines
    from each module, sorts, then outputs.

Note that a more optimal implementation would be fairly straightforward.
Instead of simply returning a string[], `Module.toCtags` could take a
sorted container and insert in sorted order.  main.d could pass this
container to each module in turn, then output the results.
2013-07-26 13:05:17 -07:00
Hackerpilot ce3ce23099 Added command-line help 2012-11-11 03:42:02 +00:00
John Maschmeyer dd62f275c7 Switched string appends to use appender 2012-10-22 18:46:50 -05:00
John Maschmeyer ae49c5449c Made sloc print when using stdin instead of a file. 2012-10-17 18:13:14 -05:00
John Maschmeyer 12e242ca0f Added stdin as an alternative to a filename for all other modes except for ctags. Ctags requires the filename, so it still requires a filename. 2012-10-17 18:04:48 -05:00
John Maschmeyer 258e10aef6 Cleaned up a few things 2012-10-16 19:35:40 -05:00
John Maschmeyer 224349ac9c If no file is specified for --dotComplete or --parenComplete, read from stdin instead 2012-10-16 18:54:11 -05:00
Hackerpilot c25944e85e Improved autocomplete for pointers 2012-08-26 22:50:28 +00:00
Hackerpilot de1ff9f24a Made more code portable to Windows 2012-06-22 12:41:50 -07:00
Hackerpilot 8775d2e968 use buildPath instead of string concat 2012-06-17 18:43:00 +00:00
Hackerpilot b07e9f94ef Fixed issue #12. Fixed support for autocompleting version and scope statements 2012-06-17 17:19:49 +00:00
Hackerpilot c86ab70b07 Added dot completion support for import statements 2012-06-16 20:45:16 -07:00
Hackerpilot 99dfd0973a Fixed bug with version statement completion 2012-05-04 14:49:09 -07:00
Hackerpilot bbd2ec13ea Added foreach_reverse to list of tokens used for line-of-code count
Alphabetized constants
Cleaned up constant names
Fixed defects with decimal parsing
Eliminated iteration style parameter to lexWhitespace, as it didn't really speed things up.
Added support for imaginary literals
2012-04-27 02:26:34 -07:00
Hackerpilot 79f59bb6f4 Added --ctags option to generate tags file 2012-04-21 17:43:56 -07:00
Roman D. Boiko bd9a5186d8 Updated licensing information (minor) 2012-04-21 21:00:59 +02:00
Hackerpilot b0a677a17c Module declarations. Changed license to Boost 2012-04-21 11:11:30 -07:00
Hackerpilot 9d5a8ce7e6 Checking in the code 2012-04-21 06:10:41 -07:00