summaryrefslogtreecommitdiff
path: root/src/vhdl/scanner.ads
diff options
context:
space:
mode:
Diffstat (limited to 'src/vhdl/scanner.ads')
-rw-r--r--src/vhdl/scanner.ads5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/vhdl/scanner.ads b/src/vhdl/scanner.ads
index 3edc9c0..6a5e1cf 100644
--- a/src/vhdl/scanner.ads
+++ b/src/vhdl/scanner.ads
@@ -62,6 +62,11 @@ package Scanner is
-- Initialize the scanner with file SOURCE_FILE.
procedure Set_File (Source_File : Source_File_Entry);
+ -- This function can be called just after Set_File to detect UTF BOM
+ -- patterns. It reports an error if a BOM is present and return True.
+ -- Silently return False if no error detected.
+ function Detect_Encoding_Errors return Boolean;
+
procedure Set_Current_Position (Position: Source_Ptr);
-- Finalize the scanner.