Commit 082047ba authored by Gregor Zimmermann's avatar Gregor Zimmermann

The Analyzing data

parent 01f8a939
Pipeline #20137 failed with stages

Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.

There was a Problem with https://github.com/Big5-sec/SourceFu
There was a Problem with https://github.com/PennState/SCIMple-Identity
There was a Problem with https://github.com/Talend/components
There was a Problem with https://github.com/apache/directory-scimple
There was a Problem with https://github.com/apache/skywalking
There was a Problem with https://github.com/artist-project/ARTIST
There was a Problem with https://github.com/crossminer/scava
There was a Problem with https://github.com/goldmansachs/jdmn
There was a Problem with https://github.com/liferay/liferay-portal
There was a Problem with https://github.com/rewriting/tom
There was a Problem with https://github.com/streamsets/datacollector
There was a Problem with https://github.com/strongbox/strongbox
\ No newline at end of file
This diff is collapsed.
/*
[The "BSD licence"]
Copyright (c) 2013 Tom Everett
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
3. The name of the author may not be used to endorse or promote products
derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
lexer grammar HTMLLexer;
HTML_COMMENT
: '<!--' .*? '-->'
;
HTML_CONDITIONAL_COMMENT
: '<![' .*? ']>'
;
XML_DECLARATION
: '<?xml' .*? '>'
;
CDATA
: '<![CDATA[' .*? ']]>'
;
DTD
: '<!' .*? '>'
;
SCRIPTLET
: '<?' .*? '?>'
| '<%' .*? '%>'
;
SEA_WS
: (' '|'\t'|'\r'? '\n')+
;
SCRIPT_OPEN
: '<script' .*? '>' ->pushMode(SCRIPT)
;
STYLE_OPEN
: '<style' .*? '>' ->pushMode(STYLE)
;
TAG_OPEN
: '<' -> pushMode(TAG)
;
HTML_TEXT
: ~'<'+
;
//
// tag declarations
//
mode TAG;
TAG_CLOSE
: '>' -> popMode
;
TAG_SLASH_CLOSE
: '/>' -> popMode
;
TAG_SLASH
: '/'
;
//
// lexing mode for attribute values
//
TAG_EQUALS
: '=' -> pushMode(ATTVALUE)
;
TAG_NAME
: TAG_NameStartChar TAG_NameChar*
;
TAG_WHITESPACE
: [ \t\r\n] -> skip
;
fragment
HEXDIGIT
: [a-fA-F0-9]
;
fragment
DIGIT
: [0-9]
;
fragment
TAG_NameChar
: TAG_NameStartChar
| '-'
| '_'
| '.'
| DIGIT
| '\u00B7'
| '\u0300'..'\u036F'
| '\u203F'..'\u2040'
;
fragment
TAG_NameStartChar
: [:a-zA-Z]
| '\u2070'..'\u218F'
| '\u2C00'..'\u2FEF'
| '\u3001'..'\uD7FF'
| '\uF900'..'\uFDCF'
| '\uFDF0'..'\uFFFD'
;
//
// <scripts>
//
mode SCRIPT;
SCRIPT_BODY
: .*? '</script>' -> popMode
;
SCRIPT_SHORT_BODY
: .*? '</>' -> popMode
;
//
// <styles>
//
mode STYLE;
STYLE_BODY
: .*? '</style>' -> popMode
;
STYLE_SHORT_BODY
: .*? '</>' -> popMode
;
//
// attribute values
//
mode ATTVALUE;