Improve c language highlighting
Some checks failed
timw4mail/php-kilo/pipeline/head There was a failure building this commit

This commit is contained in:
Timothy Warren 2021-04-15 12:47:02 -04:00
parent d0817b62c4
commit 608fe6cc62
2 changed files with 3 additions and 3 deletions

View File

@ -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',
],
[
'<=>', '<<=', '>>=',

View File

@ -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)
{