From e4585fb2cc6e82e63e3566db33c9d29dc305f951 Mon Sep 17 00:00:00 2001 From: Jesse Portnoy Date: Sat, 5 Aug 2023 21:44:58 +0100 Subject: [PATCH] improvements to ifconfig lexer --- syntax_files/ifconfig.yaml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/syntax_files/ifconfig.yaml b/syntax_files/ifconfig.yaml index e861a4a..a2cc517 100644 --- a/syntax_files/ifconfig.yaml +++ b/syntax_files/ifconfig.yaml @@ -15,14 +15,17 @@ rules: # interface - cyan: "^([a-z0-9.]{2,}\\d*):?\\s" #ip disc - - cyan: "(inet6?|netmask|broadcast)" + - cyan: "(inet6?|netmask|broadcast|ether|loop)" # mtu - green: "(?i)mtu(\\s|\\:)\\d+" #errors - red: "errors(\\s|\\:)\\d+" - red: "collisions(\\s|\\:)\\d+" - yellow: "flags=(-?\\d+<[A-Z,]+>)" - - white: "dropped(\\s|\\:)\\d+" + - red: "dropped(\\s|\\:)\\d+" - magenta: "overruns(\\s|\\:)\\d+" - - white: "frame(\\s|\\:)\\d+" + - yellow: "frame(\\s|\\:)\\d+" + - yellow: "(Ethernet|Local Loopback)" - cyan: "carrier(\\s|\\:)\\d+" + - cyan: "packets\\s+\\d+" + - high.green: "bytes\\s+\\d+"