summaryrefslogtreecommitdiff
path: root/lib/coderay/scanners/html.rb
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'master' into css-in-htmlKornelius Kalnbach2013-06-231-3/+11
|\
| * tweak HTML CDATA token kindsKornelius Kalnbach2013-06-231-9/+7
| |
| * Support CDATA blocks in HTML/XMLGavin Kistner2013-06-061-1/+11
| |
* | scan_css in HTML scanner (arguments), change token kind from :inline to :stringKornelius Kalnbach2013-06-231-9/+14
| |
* | scan_css in HTML scanner (tags)Kornelius Kalnbach2013-06-231-6/+15
|/
* fix #83 (XML DTD)Kornelius Kalnbach2013-02-171-1/+1
|
* Fix HTML scanner: Don't crash if HTML in a diff contains a JavaScript tag.Kornelius Kalnbach2012-10-071-1/+4
|
* HTML scanner accepts boolean attributes; fixes issue #26Kornelius Kalnbach2012-06-191-4/+1
|
* HTML scanner ignores <% tags and accepts :state optionKornelius Kalnbach2011-09-091-2/+2
|
* fix HTML scanner to correctly highlight embedded Ruby inside of attribute valuesKornelius Kalnbach2011-08-211-6/+6
|
* rename CaseIgnoringWordList to WordList::CaseIgnoringKornelius Kalnbach2011-08-191-3/+2
|
* added more EVENT_ATTRIBUTES for JavaScript in HTMLmurphy2011-05-211-11/+14
|
* Encoder refactoring to fix LOC and Statistic encodersmurphy2011-04-201-1/+1
|
* Improved HTML/JavaScript integration: Check attribute name with list of ↵murphy2011-04-201-3/+16
| | | | handlers.
* Improved JavaScript integration in HTML scanner.murphy2011-04-191-26/+41
|
* highlight multiline JS blocks as :inline groupmurphy2011-03-071-1/+5
|
* #46: Integrating JavaScript into HTML scanner.murphy2011-03-071-18/+61
|
* Got rid of the old streaming system (see #142).murphy2010-05-011-1/+0
|
* Direct Streaming! See #142 and Changes.textile.murphy2010-05-011-87/+77
|
* Cleanup and simplify HTML scanner.murphy2010-03-261-16/+21
|
* Updating scanners: Ruby 1.9 warnings, KINDS_NOT_LOCmurphy2009-10-191-2/+9
| | | | | * Also, DATABASE is a SQL keyword.
* Completed YAML Scanner (closes #34).murphy2009-01-011-1/+1
| | | | | | | | | | | | | YAML Scanner: * Added another example (multiline). * Added multiline string recognition. * This should be enough for most people. Else: * New method: Scanner#column (very useful and fast!) * Added new token type :doctype, used also by HTML scanner. * coderay_suite: minor output tweaks.
* New: *YAML* (#53). Preparing for version 0.8.1.murphy2008-10-201-2/+0
| | | | | | | | | | | | | | * Based on the YAML scanner from Jamis Buck's Syntax lib. * Some YAML examples from Ruby gems. * Doesn't handle string yet; alpha state. More changes: * coderay_suite: new parameter "fast" makes testing faster (for development). * Changed the title of HTML page output (Page Encoder). * FileType: Added new file types. * cYcnus style: simplified some token group styles. * Cleanup in CSS and HTML Scanners.
* Tests:murphy2006-10-151-0/+3
| | | | | | | | | | | | | | | | - improved coderay_suite.rb (random and shuffled tests, max parameter, scannerlang->lang, sorted test cases...) - changed html output extension to .actual.html to svn:ignore them - fixed some tests (deleted $Id$ etc.) - made XHTML testcase work Scanners: - fixed HTML, Delphi and Nitro scanners thanks to new tests Engine: - Tokens#fix and #fix! added (yet to be tested) - improved Scanner#raise_inspect a bit Converted more files to UNIX format (go away, stinkin' \r!)
* Changed error handling of all scanners: :error tokens are OK now, even in ↵murphy2006-07-111-167/+174
| | | | | | | | | | | | | 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-161/+161
|
* Fix:murphy2006-06-281-1/+1
| | | | | | | | | | | | | | HTML Scanner: Fixed a nasty bug with invalid entities. Thanks to Daniel Bovensiepen. Scanner: added Scanner.normify. Plugin: small documentation fix. Code statistic: added lib root folder rake_helpers/code_statistics.rb: added ability to include non-Ruby code in the statistics used it to count the mountain of test data There is some mixed space/tab indentation now. Complete 2-space-re-indentation will follow.
* New Version: 0.7.0!murphy2006-04-191-2/+2
| | | | | | | | | | | Adjusted gem.rake. HTML scanner fixed. Enhanced filetype.rb: .rake files, xml, yaml (preparing for YAML scanner.) Enhanced test/ruby/1.in.rb. Added XML scanner with example. plugin.rb: made all_plugin_names public.
* 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/+1
| | | | | | | 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.
* Large update: Scanners for HTML, RHTML and Nitro-XHTML added.murphy2006-04-101-20/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | CSS style changes/enhancments (mainly the new background color for inline code, affects all Ruby code.) Demos and tests adjusted. Plugin: new PluginHost::default method. Scanner: - New setup method - ability to re-use a scanner - ability to keep the tokens - minor changes to token caching and string flattening Encoder: Error if token content is neither String nor Symbol. HTML encoder: - more warnings for unclosed tokens - output now UTF-8 Ruby Scanner: - bug: symbols before => now do not include =; {:foo=>bar} is valid Ruby code - try to close all open tokens - constants now all with specific namespace (for speed, I hope) Styles: new :entity/en class. Test suite now gives hinted HTML output.
* Added HTML scanner!murphy2006-04-041-0/+148
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.