summaryrefslogtreecommitdiff
path: root/lib/coderay/scanners/c.rb
Commit message (Collapse)AuthorAgeFilesLines
* pretty (longer) token class names; closes #347Kornelius Kalnbach2011-08-191-1/+1
|
* issue #43: replacing :reserved with :keyword for C and C++murphy2011-05-211-3/+3
|
* renamed pre_* token kinds to predefined_*murphy2011-04-171-2/+2
|
* Speedup C scanner (reordering of token rules).murphy2011-04-041-7/+7
|
* Got rid of the old streaming system (see #142).murphy2010-05-011-2/+0
|
* Direct Streaming! See #142 and Changes.textile.murphy2010-05-011-57/+42
|
* Fixed documentation of C scanner.murphy2010-03-261-2/+0
|
* Cleanups for C, C++, CSS, Delphi, Groovy, Java, PHP, Python, RHTML, XML, and ↵murphy2010-03-261-11/+16
| | | | YAML scanners.
* Copying changes and fixes for 0.9.0rc3 from terminal-encoder branch over to ↵murphy2009-12-281-12/+43
| | | | trunk.
* Updating C scanner:murphy2009-10-191-14/+20
| | | | | | | | | | * Ruby 1.9 warnings (yeah, it's really a pain) * added DIRECTIVES * fixed a bug that highlighted // as an operator (bah!) * accept $ in variable names * accept intLL literals * recover silently from :include_expected on unexpected tokens
* Java scanner:murphy2009-04-141-2/+3
| | | | | | | | | | | * Fixed test after r305 broke it. * [FIXED] Save last_token_dot state through comments. C scanner: * Added file_extension declaration. ** All scanners should have this. * Code cleanup.
* Benchmark, comparison: replaced SilverCity with pygmentsmurphy2007-04-241-1/+1
| | | | | | | A bit of code and documentation cleanup HTML encoder: fixed css class output for NO_HIGHLIGHT tokens when :info is set. Fixed Text encoder.
* Done:murphy2007-01-011-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | General: - Declared version 0.7.6. - Moved WordList, CaseIgnoringWordList, Plugin, PluginHost and FileType into CodeRay namespace. CodeRay should be "clean" now, except for the String#to_unix helper function. - Fixed a bit of documentation. - CodeRay binary: Prepare for streaming switch. Scanners: - Added code= alias for string=. - Added streaming? method: Is this Scanner in streaming mode? - Enhanced error info a bit. - Ruby scanner: - Highlights Regexp heredocs now. They may be added to Ruby 1.9. - Speedups with better support for Ruby 1.9. - Change in whitespace handling (faster and cleaner now.) - Speed up some operator recognition (saving two string comparisons). - Declared C and Plaintext Scanners as Streamable. Tokens: - Changed Text/Block token recognition (#is_a? ::String for Ruby 1.9 support). - New method: Tokens#text yields the code string. - text_size fixed. - Token kind shortcuts (like r for reserved) are now defined in token_classes.rb (instead of encoders/html/classes.rb). Encoders: - Debug Scanner added. - Base encoder class adds to @out when encoding (if @out is set). - A little Tokens scanner speedup. - Text encoder uses text_token. - Statistic encoder counts block tokens. - Smaller changes in XML and HTML encoders. Styles: - cYcnus style defines a debug class now. Duo: - scanner and encoder are now methods. Scanner and Encoder are created (and cached) when needed, not earlier. - Documented. Tests: - Disabled encoder and scanner list check (breaks too often). - Added identity test, which checks if tokens#text matches the input. - Added nocolor switch. Developer tools: - Benchmark uses Encoder#file_extension for output now. - Rakefile: Support for 19, 18, yarv and ruby switches for easy comparing different Ruby versions. - Statistic: Demos are no longer tests.
* Changed error handling of all scanners: :error tokens are OK now, even in ↵murphy2006-07-111-155/+163
| | | | | | | | | | | | | debug mode, but token kind is nil unless assigned. Small fixes for C and Ruby scanners. Renamed local variable type to kind in Ruby scanner. Improved RHTML scanner to recognize -%> as delimiter. HTML encoder: improved handling of malformed token strings. Fixed PluginHost#inspect including docu. Scanner#raise_inspect also shows state if given.
* Big re-indenting - no more tabs!murphy2006-07-101-150/+150
|
* Re-indented everything. Sorry to break the blame chain.murphy2006-04-161-2/+4
|
* All scanners revisited not to produce errors unless in DEBUG mode. [thx@Daniel]murphy2006-04-161-1/+5
| | | | | | | Fixed numerization for input not ending with \n. Added test cases in C scanner tests. Added WoNáDo as contributer for last Ruby scanner fix. Updated TODO.
* Added HTML scanner!murphy2006-04-041-4/+6
| | | | | | | Added test/html/suite.rb and tolkien.in.html test. Benchmark produces inline line numbers now. Minor changes to Ruby and C scanners. Rakefile: unit tests now in -d mode.
* HTML Encoder: inline numerization corrected.murphy2006-03-231-3/+3
| | | | | | | | New demo: demo/demo_html_list.rb. Some demos adjusted. C Scanner: error messages fixed. Rakefile: test_demos now in debug mode. test/suite.rb is using reusable Scanners now.
* helpers/word_list.rb:murphy2005-11-051-1/+1
| | | | | | | | new CaseIgnoringWordList class simplified implementation Performance gain should be small. Adjusted scanner.rb and scanners/delphi.rb
* New Repository, initial importno author2005-09-261-0/+147