Added tcpdump lexer

Some indentation fixes
This commit is contained in:
Jesse Portnoy
2025-03-25 15:49:23 +00:00
parent 09ec4f4a7f
commit bf17668d56
4 changed files with 38 additions and 21 deletions
+2 -2
View File
@@ -1,3 +1,4 @@
---
filetype: serverlog
detect:
@@ -8,8 +9,7 @@ rules:
- preproc: "([0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3})"
- preproc: "\\\\."
- preproc: "(\\[(error|warning|info|warn)\\])"
- constant.specialChar: "((GET|POST|HEAD)\\ [^\\ ]+)"
- constant.specialChar: "((GET|POST|HEAD)\\ [^\\ ]+)"
- comment: "(referer\\: .*)"
- statement: "[[:space:]]([0-9~:.]{2,}[-+:.0-9a-z~]+)[[:space:]]"
- type: "(Mozilla|Chrome|Safari|Firefox|AppleWebKit|Linux x86_64|Gecko|Windows|Mac)"