algol68 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. #------------------------------------------------------------------------------
  2. # $File: algol68,v 1.7 2024/08/27 18:50:56 christos Exp $
  3. # algol68: file(1) magic for Algol 68 source
  4. #
  5. # URL: https://en.wikipedia.org/wiki/ALGOL_68
  6. # Reference: http://www.softwarepreservation.org/projects/ALGOL/report/Algol68_revised_report-AB.pdf
  7. # Update: Joerg Jenderek
  8. 0 search/8192 (input,
  9. >0 use algol_68
  10. # graph_2d.a68
  11. 0 regex/4006 \^PROC[[:space:]][a-zA-Z0-9_[:space:]]*[[:space:]]=
  12. >0 use algol_68
  13. 0 regex/1024 \bMODE[\t\ ]
  14. >0 use algol_68
  15. 0 regex/1024 \bREF[\t\ ]
  16. >0 use algol_68
  17. 0 regex/1024 \bFLEX[\t\ ]\*\\[
  18. >0 use algol_68
  19. # display information like mime type and file name extension of Algol 68 source text
  20. 0 name algol_68 Algol 68 source text
  21. !:mime text/x-Algol68
  22. # https://file-extension.net/seeker/file_extension_a68
  23. !:ext a68
  24. #!:ext a68/alg
  25. #0 regex [\t\ ]OD Algol 68 source text
  26. #>0 use algol_68
  27. #!:mime text/x-Algol68
  28. #0 regex [\t\ ]FI Algol 68 source text
  29. #>0 use algol_68
  30. #!:mime text/x-Algol68