OpenCores
URL https://opencores.org/ocsvn/copyblaze/copyblaze/trunk

Subversion Repositories copyblaze

[/] [copyblaze/] [trunk/] [copyblaze/] [sw/] [tools/] [asm/] [pBlazASM/] [pBlazASM/] [pbLexer.c] - Diff between revs 2 and 46

Show entire file | Details | Blame | View Log

Rev 2 Rev 46
Line 109... Line 109...
                                // end of line
                                // end of line
                                return true ;
                                return true ;
                        } else if ( *s == ' ' || iscntrl( *s ) ) {
                        } else if ( *s == ' ' || iscntrl( *s ) ) {
                                // white space, 'space' and all control characters, except \0, \r and \n
                                // white space, 'space' and all control characters, except \0, \r and \n
                                s++ ;
                                s++ ;
                        } else if ( mode && ( isalnum( *s ) ) ) {
                        } else if ( mode && ( isalnum( *s ) || *s == '_'  ) ) {
                                // KCPSM mode, all alphanum is accepted for idents, could be hex values
                                // KCPSM mode, all alphanum is accepted for idents, could be hex values
                                // ident
                                // ident
                                start = s++ ;
                                start = s++ ;
                                state = lsIdent ;
                                state = lsIdent ;
                        } else if ( !mode && ( isalpha( *s ) || *s == '_' ) ) {
                        } else if ( !mode && ( isalpha( *s ) || *s == '_' ) ) {

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.