Improve c language highlighting
Some checks failed
timw4mail/php-kilo/pipeline/head There was a failure building this commit
Some checks failed
timw4mail/php-kilo/pipeline/head There was a failure building this commit
This commit is contained in:
parent
d0817b62c4
commit
608fe6cc62
@ -36,7 +36,7 @@ class FileType {
|
||||
'#include', 'unsigned', '#define', '#ifndef', 'double', 'signed', '#endif',
|
||||
'#ifdef', 'float', '#error', '#undef', '#elif', 'long', 'char', 'int', 'void', '#if',
|
||||
'uint32_t', 'wchar_t', 'int32_t', 'int64_t', 'uint64_t', 'int16_t', 'uint16_t',
|
||||
'uint8_t', 'int8_t',
|
||||
'uint8_t', 'int8_t', 'time_t', 'size_t',
|
||||
],
|
||||
[
|
||||
'<=>', '<<=', '>>=',
|
||||
|
@ -380,7 +380,7 @@ class Row {
|
||||
{
|
||||
return $this->highlightChar(
|
||||
$i,
|
||||
['+', '-', '*', '/', '<', '^', '>', '%', '=', ':', ',', ';', '&', '~'],
|
||||
['+', '-', '*', '/', '<', '^', '>', '%', '=', ':', ',', ';', '&', '~', '!', '|', '.'],
|
||||
Highlight::OPERATOR
|
||||
);
|
||||
}
|
||||
@ -406,7 +406,7 @@ class Row {
|
||||
|
||||
if ($opts->characters() && $char === "'")
|
||||
{
|
||||
$offset = ($nextChar === '\\') ? $i + 2 : $i + 1;
|
||||
$offset = ($nextChar === '\\') ? $i + 3 : $i + 1;
|
||||
$closingIndex = strpos($this->render, "'", $offset);
|
||||
if ($closingIndex === false)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user