Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
G
geany
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
geany
Commits
b596aa14
Kaydet (Commit)
b596aa14
authored
Agu 03, 2014
tarafından
Colomban Wendling
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
JavaScript: don't choke when returning object literals
üst
bc9b2fa4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
84 additions
and
0 deletions
+84
-0
js.c
tagmanager/ctags/js.c
+4
-0
Makefile.am
tests/ctags/Makefile.am
+1
-0
complex-return.js
tests/ctags/complex-return.js
+61
-0
complex-return.js.tags
tests/ctags/complex-return.js.tags
+18
-0
No files found.
tagmanager/ctags/js.c
Dosyayı görüntüle @
b596aa14
...
...
@@ -1663,6 +1663,10 @@ static boolean parseLine (tokenInfo *const token, boolean is_inside_class)
case
KEYWORD_switch
:
parseSwitch
(
token
);
break
;
case
KEYWORD_return
:
findCmdTerm
(
token
);
is_terminated
=
isType
(
token
,
TOKEN_SEMICOLON
);
break
;
default:
is_terminated
=
parseStatement
(
token
,
is_inside_class
);
break
;
...
...
tests/ctags/Makefile.am
Dosyayı görüntüle @
b596aa14
...
...
@@ -112,6 +112,7 @@ test_sources = \
char-selector.f90
\
classes.php
\
common.f
\
complex-return.js
\
continuation.f90
\
countall.sql
\
cpp_destructor.cpp
\
...
...
tests/ctags/complex-return.js
0 → 100644
Dosyayı görüntüle @
b596aa14
function
func1
()
{
return
{
a
:
1
,
b
:
2
};
}
function
func2
()
{
return
42
;
}
var
class1
=
function
()
{
this
.
method1
=
function
()
{
return
42
;
};
this
.
method2
=
function
()
{
return
{
a
:
1
,
b
:
2
};
};
this
.
method3
=
function
()
{
return
[
1
,
2
,
3
];
};
this
.
method4
=
function
()
{
return
"hello"
;
};
};
var
class2
=
function
()
{
this
.
c2m1
=
function
()
{
c2m3
(
function
()
{
return
{
'test'
:
{}
};
});
};
this
.
c2m2
=
function
(
f
)
{
return
{
'ret'
:
f
()
};
};
this
.
c2m3
=
function
(
f
)
{
return
f
();
};
};
var
class3
=
function
()
{
this
.
c3m1
=
function
()
{
return
function
(
n
)
{
if
(
n
==
42
)
{
return
0
;
}
else
{
return
(
n
+
1
)
%
42
;
}
};
};
this
.
c3m2
=
function
()
{
return
0
;
};
}
var
class4
=
function
()
{
this
.
method1
=
function
()
{
return
[{
a
:
1
,
b
:
2
},
{
a
:
3
,
b
:
4
},
{
a
:
5
,
b
:
6
}];
};
this
.
method2
=
function
()
{
return
0
;
};
};
tests/ctags/complex-return.js.tags
0 → 100644
Dosyayı görüntüle @
b596aa14
# format=tagmanager
c2m1128class20
c2m2128class20
c2m3128class20
c3m1128class30
c3m2128class30
class110
class210
class310
class410
func1160
func2160
method1128class10
method1128class40
method2128class10
method2128class40
method3128class10
method4128class10
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment