# frozen-string-literal: true require 'strscan' module Tomlrb class Scanner COMMENT = /#[^\u0000-\u0008\u000A-\u001F\u007F]*/.freeze IDENTIFIER = /[A-Za-z0-9_-]+/.freeze SPACE = /[ \t]/.freeze NEWLINE = /(?:[ \t]*(?:\r?\n)[ \t]*)+/.freeze STRING_BASIC = /(")(?:\\?[^\u0000-\u0008\u000A-\u001F\u007F\\]|(?:\\[^\u0000-\u0008\u000A-\u001F\u007F]))*?\1/.freeze STRING_MULTI = /"{3}([^\u0000-\u0008\u000B\u000C\u000E-\u001F\u007F]*?(?