File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 22
22
23
23
- name : Update Markdown intrinsics
24
24
run : |
25
- python3 -m fortls.intrinsics
25
+ python3 -m fortls.parsers.internal. intrinsics
26
26
27
27
- name : Create Pull Request
28
28
uses : peter-evans/create-pull-request@v6
Original file line number Diff line number Diff line change 3
3
import glob
4
4
import json
5
5
import os
6
- import pathlib
6
+ from pathlib import Path
7
7
8
8
from fortls .helper_functions import fortran_md , get_placeholders , map_keywords
9
9
@@ -271,13 +271,15 @@ def update_m_intrinsics():
271
271
for f in sorted (files ):
272
272
key = f .replace ("M_intrinsics/md/" , "" )
273
273
key = key .replace (".md" , "" ).upper () # remove md extension
274
- val = pathlib . Path (f ).read_text ()
274
+ val = Path (f ).read_text ()
275
275
# remove manpage tag
276
276
val = val .replace (f"**{ key .lower ()} **(3)" , f"**{ key .lower ()} **" )
277
277
val = val .replace (f"**{ key .upper ()} **(3)" , f"**{ key .upper ()} **" )
278
278
markdown_intrinsics [key ] = val
279
279
280
- with open ("fortls/intrinsic.procedures.markdown.json" , "w" ) as f :
280
+ with open (
281
+ Path (__file__ ).parent / "intrinsic.procedures.markdown.json" , "w"
282
+ ) as f :
281
283
json .dump (markdown_intrinsics , f , indent = 2 )
282
284
f .write ("\n " ) # add newline at end of file
283
285
except Exception as e :
You can’t perform that action at this time.
0 commit comments