Lines Matching +full:solid +full:- +full:state

1 //== HTMLRewrite.cpp - Translate source code into prettified HTML --*- C++ -*-//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
12 //===----------------------------------------------------------------------===//
29 /// HighlightRange - Highlight a range in the source code with the specified
58 /// HighlightRange - This is the same as the above method, but takes
77 // to insert a close tag at the first non-whitespace before the newline. in HighlightRange()
82 // wait until we see a non-whitespace character. This prevents us from in HighlightRange()
84 // be put *after* whitespace on a non-blank line. in HighlightRange()
168 unsigned NumSpaces = 8-(ColNo&7); in EscapeText()
242 OS << "<tr class=\"codeline\" data-linenumber=\"" << LineNo << "\">" in AddLineNumber()
272 unsigned LineEndPos = FileEnd - FileBeg; in AddLineNumbers()
277 // Scan until the newline (or end-of-file). in AddLineNumbers()
297 os << "<table class=\"code\" data-fileid=\"" << FID.getHashValue() << "\">\n"; in AddLineNumbers()
299 RB.InsertTextAfter(FileEnd - FileBeg, "</table>"); in AddLineNumbers()
310 SourceLocation EndLoc = StartLoc.getLocWithOffset(FileEnd-FileStart); in AddHeaderFooterInternalBuiltinCSS()
322 body { color:#000000; background-color:#ffffff } in AddHeaderFooterInternalBuiltinCSS()
323 body { font-family:Helvetica, sans-serif; font-size:10pt } in AddHeaderFooterInternalBuiltinCSS()
324 h1 { font-size:14pt } in AddHeaderFooterInternalBuiltinCSS()
325 .FileName { margin-top: 5px; margin-bottom: 5px; display: inline; } in AddHeaderFooterInternalBuiltinCSS()
326 .FileNav { margin-left: 5px; margin-right: 5px; display: inline; } in AddHeaderFooterInternalBuiltinCSS()
327 .FileNav a { text-decoration:none; font-size: larger; } in AddHeaderFooterInternalBuiltinCSS()
328 .divider { margin-top: 30px; margin-bottom: 30px; height: 15px; } in AddHeaderFooterInternalBuiltinCSS()
329 .divider { background-color: gray; } in AddHeaderFooterInternalBuiltinCSS()
330 .code { border-collapse:collapse; width:100%; } in AddHeaderFooterInternalBuiltinCSS()
331 .code { font-family: "Monospace", monospace; font-size:10pt } in AddHeaderFooterInternalBuiltinCSS()
332 .code { line-height: 1.2em } in AddHeaderFooterInternalBuiltinCSS()
333 .comment { color: green; font-style: oblique } in AddHeaderFooterInternalBuiltinCSS()
338 /* Macros and variables could have pop-up notes hidden by default. in AddHeaderFooterInternalBuiltinCSS()
339 - Macro pop-up: expansion of the macro in AddHeaderFooterInternalBuiltinCSS()
340 - Variable pop-up: value (table) of the variable */ in AddHeaderFooterInternalBuiltinCSS()
343 /* Pop-up appears on mouse-hover event. */ in AddHeaderFooterInternalBuiltinCSS()
347 -webkit-border-radius:5px; in AddHeaderFooterInternalBuiltinCSS()
348 -webkit-box-shadow:1px 1px 7px #000; in AddHeaderFooterInternalBuiltinCSS()
349 border-radius:5px; in AddHeaderFooterInternalBuiltinCSS()
350 box-shadow:1px 1px 7px #000; in AddHeaderFooterInternalBuiltinCSS()
352 top: -1em; in AddHeaderFooterInternalBuiltinCSS()
354 z-index: 1 in AddHeaderFooterInternalBuiltinCSS()
358 border: 2px solid red; in AddHeaderFooterInternalBuiltinCSS()
359 background-color:#FFF0F0; in AddHeaderFooterInternalBuiltinCSS()
360 font-weight: normal; in AddHeaderFooterInternalBuiltinCSS()
364 border: 2px solid blue; in AddHeaderFooterInternalBuiltinCSS()
365 background-color:#F0F0FF; in AddHeaderFooterInternalBuiltinCSS()
366 font-weight: bold; in AddHeaderFooterInternalBuiltinCSS()
367 font-family: Helvetica, sans-serif; in AddHeaderFooterInternalBuiltinCSS()
368 font-size: 9pt; in AddHeaderFooterInternalBuiltinCSS()
371 /* Pop-up notes needs a relative position as a base where they pops up. */ in AddHeaderFooterInternalBuiltinCSS()
373 background-color: PaleGoldenRod; in AddHeaderFooterInternalBuiltinCSS()
381 margin-left: -25em; in AddHeaderFooterInternalBuiltinCSS()
384 border: 1px solid #b0b0b0; in AddHeaderFooterInternalBuiltinCSS()
385 border-radius: 2px; in AddHeaderFooterInternalBuiltinCSS()
386 box-shadow: 1px 1px 7px black; in AddHeaderFooterInternalBuiltinCSS()
387 background-color: #c0c0c0; in AddHeaderFooterInternalBuiltinCSS()
388 z-index: 2; in AddHeaderFooterInternalBuiltinCSS()
391 .num { width:2.5em; padding-right:2ex; background-color:#eeeeee } in AddHeaderFooterInternalBuiltinCSS()
392 .num { text-align:right; font-size:8pt } in AddHeaderFooterInternalBuiltinCSS()
394 .line { padding-left: 1ex; border-left: 3px solid #ccc } in AddHeaderFooterInternalBuiltinCSS()
395 .line { white-space: pre } in AddHeaderFooterInternalBuiltinCSS()
396 .msg { -webkit-box-shadow:1px 1px 7px #000 } in AddHeaderFooterInternalBuiltinCSS()
397 .msg { box-shadow:1px 1px 7px #000 } in AddHeaderFooterInternalBuiltinCSS()
398 .msg { -webkit-border-radius:5px } in AddHeaderFooterInternalBuiltinCSS()
399 .msg { border-radius:5px } in AddHeaderFooterInternalBuiltinCSS()
400 .msg { font-family:Helvetica, sans-serif; font-size:8pt } in AddHeaderFooterInternalBuiltinCSS()
404 .msg { margin-top:10px; margin-bottom:10px } in AddHeaderFooterInternalBuiltinCSS()
405 .msg { font-weight:bold } in AddHeaderFooterInternalBuiltinCSS()
406 .msg { max-width:60em; word-wrap: break-word; white-space: pre-wrap } in AddHeaderFooterInternalBuiltinCSS()
408 .msgEvent { background-color:#fff8b4; color:#000000 } in AddHeaderFooterInternalBuiltinCSS()
409 .msgControl { background-color:#bbbbbb; color:#000000 } in AddHeaderFooterInternalBuiltinCSS()
410 .msgNote { background-color:#ddeeff; color:#000000 } in AddHeaderFooterInternalBuiltinCSS()
411 .mrange { background-color:#dfddf3 } in AddHeaderFooterInternalBuiltinCSS()
412 .mrange { border-bottom:1px solid #6F9DBE } in AddHeaderFooterInternalBuiltinCSS()
413 .PathIndex { font-weight: bold; padding:0px 5px; margin-right:5px; } in AddHeaderFooterInternalBuiltinCSS()
414 .PathIndex { -webkit-border-radius:8px } in AddHeaderFooterInternalBuiltinCSS()
415 .PathIndex { border-radius:8px } in AddHeaderFooterInternalBuiltinCSS()
416 .PathIndexEvent { background-color:#bfba87 } in AddHeaderFooterInternalBuiltinCSS()
417 .PathIndexControl { background-color:#8c8c8c } in AddHeaderFooterInternalBuiltinCSS()
418 .PathIndexPopUp { background-color: #879abc; } in AddHeaderFooterInternalBuiltinCSS()
419 .PathNav a { text-decoration:none; font-size: larger } in AddHeaderFooterInternalBuiltinCSS()
420 .CodeInsertionHint { font-weight: bold; background-color: #10dd10 } in AddHeaderFooterInternalBuiltinCSS()
421 .CodeRemovalHint { background-color:#de1010 } in AddHeaderFooterInternalBuiltinCSS()
422 .CodeRemovalHint { border-bottom:1px solid #6F9DBE } in AddHeaderFooterInternalBuiltinCSS()
423 .msg.selected{ background-color:orange !important; } in AddHeaderFooterInternalBuiltinCSS()
427 font-size:12pt; in AddHeaderFooterInternalBuiltinCSS()
429 border-collapse: collapse; border-spacing: 0px; in AddHeaderFooterInternalBuiltinCSS()
432 text-align: right; in AddHeaderFooterInternalBuiltinCSS()
433 vertical-align: top; in AddHeaderFooterInternalBuiltinCSS()
434 font-weight: bold; in AddHeaderFooterInternalBuiltinCSS()
436 padding-right:2ex; in AddHeaderFooterInternalBuiltinCSS()
442 text-decoration: underline; in AddHeaderFooterInternalBuiltinCSS()
469 /// SyntaxHighlight - Relex the specified FileID and annotate the HTML with
471 /// table state from the end of the file, so it won't be perfectly perfect,
509 // If this is a pp-identifier, for a keyword, highlight it as such. in SyntaxHighlightImpl()
522 --TokLen; in SyntaxHighlightImpl()
530 --TokLen; in SyntaxHighlightImpl()
533 // FIXME: Exclude the optional ud-suffix from the highlighted range. in SyntaxHighlightImpl()
571 auto CacheIt = Cache->SyntaxHighlights.find(FID); in SyntaxHighlight()
572 if (CacheIt != Cache->SyntaxHighlights.end()) { in SyntaxHighlight()
573 for (const RelexRewriteCache::RawHighlight &H : CacheIt->second) { in SyntaxHighlight()
588 Cache->SyntaxHighlights[FID].push_back({B, E, StartTag, EndTag}); in SyntaxHighlight()
600 // Re-lex the raw token stream into a token buffer. in HighlightMacrosImpl()
614 // We don't want the re-preprocess step to see #defines, #includes or other in HighlightMacrosImpl()
626 // macro expanded when we re-preprocess it. in HighlightMacrosImpl()
642 // its state, but we aren't actually changing it (we hope). This should really in HighlightMacrosImpl()
657 // but won't enter sub-files (because we removed #'s). in HighlightMacrosImpl()
666 // Ignore non-macro tokens. in HighlightMacrosImpl()
705 LineLen -= Expansion.size(); in HighlightMacrosImpl()
722 // Insert the 'macro_popup' as the end tag, so that multi-line macros all in HighlightMacrosImpl()
731 // Restore the preprocessor's old state. in HighlightMacrosImpl()
736 /// HighlightMacros - This uses the macro table state from the end of the
737 /// file, to re-expand macros and insert (into the HTML) information about the
743 auto CacheIt = Cache->MacroHighlights.find(FID); in HighlightMacros()
744 if (CacheIt != Cache->MacroHighlights.end()) { in HighlightMacros()
745 for (const RelexRewriteCache::Highlight &H : CacheIt->second) { in HighlightMacros()
760 Cache->MacroHighlights[FID].push_back( in HighlightMacros()