From 6713b591b03d36cde8d610bc7bcba4c7755959f6 Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Wed, 24 Apr 2024 20:58:44 -0700 Subject: [PATCH] Cleanup --- lua/argonaut/types.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lua/argonaut/types.lua b/lua/argonaut/types.lua index f95442f..21dd1ee 100644 --- a/lua/argonaut/types.lua +++ b/lua/argonaut/types.lua @@ -224,6 +224,10 @@ function Param:append(char) self.text = self.text .. char end +function Param:flush() + self.text = self.text:match('^%s*(.-)%s*$') +end + -- -- ParamList -- @@ -241,6 +245,7 @@ end function ParamList:flush() if self.current then + self.current:flush() table.insert(self.parsed, self.current) self.current = nil end