File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed
Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change 1+ // the lines of code are stored in a table
2+ table = document . getElementsByClassName ( "js-file-line-container" ) [ 0 ] ;
3+
14// get current page URL
25url = table . baseURI ;
36// make root URL, i.e. only up to CMSSW_*
@@ -7,11 +10,14 @@ rootURL = url.substr(0, url.search(pattern)+cmssw.length+1);
710// console.log("URL: " + rootURL);
811
912// pattern to do #include matching
10- cpp_pattern = / # i n c l u d e / ;
11- cpp_header_pattern = / [ < \" ] .* [ > \" ] / ;
13+ var cpp_pattern = / # i n c l u d e / ;
14+ var cpp_header_pattern = / [ < \" ] .* [ > \" ] / ; // does "myheader.h" or <myheader>
1215
13- // the lines of code are stored in a table
14- table = document . getElementsByClassName ( "js-file-line-container" ) [ 0 ] ;
16+ // pattern to do python matching
17+ var py_pattern1 = / i m p o r t / ;
18+ var py_pattern2 = / f r o m \s .* \s i m p o r t \s .* / ; // might not need this one
19+ var py_pattern3 = / i m p o r t .* a s .* / ;
20+ var py_pattern4 = / p r o c e s s .l o a d ( .* ) / ;
1521
1622// loop through all rows <tr>
1723var rows = document . getElementsByTagName ( "tr" ) ;
You can’t perform that action at this time.
0 commit comments