]> Repositorios git - scryer-prolog.git/commitdiff
ENHANCED: allow Roman numerals in strings
authorMarkus Triska <[email protected]>
Wed, 3 May 2023 19:56:04 +0000 (21:56 +0200)
committerMarkus Triska <[email protected]>
Wed, 3 May 2023 20:02:47 +0000 (22:02 +0200)
Example:

    ?- X = "ↁ".
       X = "ↁ".

This addresses #1790.

src/parser/macros.rs

index 27b106fc7a516a8137f7be5a96aae84cc1392306..3e6826c9355cf319bc42fac90136c7c0ec8b5f40 100644 (file)
@@ -20,7 +20,7 @@ macro_rules! alpha_char {
 #[macro_export]
 macro_rules! alpha_numeric_char {
     ($c: expr) => {
-        $crate::alpha_char!($c) || $crate::decimal_digit_char!($c)
+        $crate::alpha_char!($c) || $c.is_numeric()
     };
 }