mirror of
https://github.com/Ed94/refactor.git
synced 2024-12-21 22:44:45 -08:00
Namespace fix (making sure a namespace is a prefix only)
This commit is contained in:
parent
6395d022f1
commit
22f74f3dc6
@ -2,8 +2,6 @@
|
||||
#include "IO.cpp"
|
||||
#include "Spec.cpp"
|
||||
|
||||
|
||||
|
||||
void parse_options( int num, char** arguments )
|
||||
{
|
||||
zpl_opts opts;
|
||||
@ -280,7 +278,7 @@ void refactor()
|
||||
{
|
||||
Spec::Entry* ignore = Spec::Ignore_Includes;
|
||||
sw ignores_left = zpl_array_count( Spec::Ignore_Includes);
|
||||
Snapshot backup = { src, left, col, line };
|
||||
Snapshot backup = { src, left, col, line };
|
||||
|
||||
if ( '#' != src[0] )
|
||||
break;
|
||||
@ -386,6 +384,12 @@ void refactor()
|
||||
continue;
|
||||
}
|
||||
|
||||
if (( zpl_char_is_alphanumeric( src[-1] ) || src[-1] == '_') )
|
||||
{
|
||||
ignore++;
|
||||
continue;
|
||||
}
|
||||
|
||||
zpl_string_clear( current );
|
||||
|
||||
u32 sig_length = zpl_string_length( ignore->Sig );
|
||||
@ -549,6 +553,9 @@ void refactor()
|
||||
if ( nspace->Sig[0] != src[0] )
|
||||
continue;
|
||||
|
||||
if (( zpl_char_is_alphanumeric( src[-1] ) || src[-1] == '_') )
|
||||
continue;
|
||||
|
||||
zpl_string_clear( current );
|
||||
|
||||
u32 sig_length = zpl_string_length( nspace->Sig );
|
||||
|
Loading…
Reference in New Issue
Block a user