fpspreadsheet: Add underscore character ('_') to the list of allowed identifier characters to get a decent error message when a worksheet contains one of the (unsupported) new Excel formulas beginning with this character. Issue #38762.

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8000 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
wp_xxyyzz
2021-04-16 15:26:35 +00:00
parent de1ecc0a8e
commit 5b0b5f8f6f

View File

@ -1389,7 +1389,7 @@ begin
Result := DoNumber
else if (C = cError) then
Result := DoError
else if IsAlpha(C) or (C = '$') or (C = '''') then
else if IsAlpha(C) or (C = '$') or (C = '''') or (C = '_') then
Result := DoIdentifier
else
ScanError(Format(rsUnknownCharacter, [FPos, C]));